mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 12:11:39 +08:00
fix: ignore checkupdate in dev env
This commit is contained in:
@@ -148,6 +148,10 @@ export const PushyProvider = ({
|
|||||||
const markSuccess = client.markSuccess;
|
const markSuccess = client.markSuccess;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (__DEV__) {
|
||||||
|
console.info('检测到在DEV环境,不会进行热更新检查');
|
||||||
|
return;
|
||||||
|
}
|
||||||
const { strategy, dismissErrorAfter, autoMarkSuccess } = options;
|
const { strategy, dismissErrorAfter, autoMarkSuccess } = options;
|
||||||
if (isFirstTime && autoMarkSuccess) {
|
if (isFirstTime && autoMarkSuccess) {
|
||||||
markSuccess();
|
markSuccess();
|
||||||
|
Reference in New Issue
Block a user