1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

fix: ignore checkupdate in dev env

This commit is contained in:
sunnylqm 2024-03-07 17:58:03 +08:00
parent 42e2051290
commit f5242017b9
No known key found for this signature in database

View File

@ -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();