fix: ignore checkupdate in dev env
This commit is contained in:
parent
42e2051290
commit
f5242017b9
@ -148,6 +148,10 @@ export const PushyProvider = ({
|
||||
const markSuccess = client.markSuccess;
|
||||
|
||||
useEffect(() => {
|
||||
if (__DEV__) {
|
||||
console.info('检测到在DEV环境,不会进行热更新检查');
|
||||
return;
|
||||
}
|
||||
const { strategy, dismissErrorAfter, autoMarkSuccess } = options;
|
||||
if (isFirstTime && autoMarkSuccess) {
|
||||
markSuccess();
|
||||
|
Loading…
Reference in New Issue
Block a user