Skip to content

Commit d5fd6c0

Browse files
committed
delay markSuccess
1 parent 26924d7 commit d5fd6c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/provider.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ export const UpdateProvider = ({
247247
}
248248
const { checkStrategy, dismissErrorAfter, autoMarkSuccess } = options;
249249
if (autoMarkSuccess) {
250-
markSuccess();
250+
setTimeout(() => {
251+
markSuccess();
252+
}, 1000);
251253
}
252254
if (checkStrategy === 'both' || checkStrategy === 'onAppResume') {
253255
stateListener.current = AppState.addEventListener(

0 commit comments

Comments
 (0)