Skip to content

Commit aea17f4

Browse files
authored
Merge pull request #30 from jasongrout/standby
Use the standby value generated instead of ignoring it.
2 parents cff0fbe + 858edc7 commit aea17f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/polling/src/poll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class Poll<T = any, U = any, V extends string = 'standby'>
289289
? false
290290
: standby === 'when-hidden'
291291
? !!(typeof document !== 'undefined' && document && document.hidden)
292-
: true;
292+
: standby;
293293

294294
// If in standby mode schedule next tick without calling the factory.
295295
if (standby) {

0 commit comments

Comments
 (0)