From d5fd6c006db8af52affa1db7e03761ca9a9b387d Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Tue, 11 Mar 2025 14:36:11 +0800 Subject: [PATCH] delay markSuccess --- src/provider.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/provider.tsx b/src/provider.tsx index 5a52941..d406268 100644 --- a/src/provider.tsx +++ b/src/provider.tsx @@ -247,7 +247,9 @@ export const UpdateProvider = ({ } const { checkStrategy, dismissErrorAfter, autoMarkSuccess } = options; if (autoMarkSuccess) { - markSuccess(); + setTimeout(() => { + markSuccess(); + }, 1000); } if (checkStrategy === 'both' || checkStrategy === 'onAppResume') { stateListener.current = AppState.addEventListener(