Skip to content

Commit a0a3b0d

Browse files
fix: add unknown option to current state (#887)
1 parent b3ff210 commit a0a3b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/flushPolicies/background-flush-policy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class BackgroundFlushPolicy extends FlushPolicyBase {
1818
'change',
1919
(nextAppState) => {
2020
if (
21-
this.appState === 'active' &&
21+
(this.appState === 'active' || this.appState === 'unknown') &&
2222
['inactive', 'background'].includes(nextAppState)
2323
) {
2424
// When the app goes into the background we will trigger a flush

0 commit comments

Comments
 (0)