diff --git a/package.json b/package.json index 371831b..80b4f25 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-update", - "version": "10.4.1", + "version": "10.4.2", "description": "react-native hot update", "main": "src/index.ts", "scripts": { diff --git a/src/provider.tsx b/src/provider.tsx index d6294f2..518d997 100644 --- a/src/provider.tsx +++ b/src/provider.tsx @@ -159,8 +159,10 @@ export const PushyProvider = ({ const markSuccess = client.markSuccess; useEffect(() => { - if (__DEV__) { - console.info('检测到在DEV环境,不会进行热更新检查'); + if (__DEV__ && !options.debug) { + console.info( + '您当前处于开发环境且未启用debug,不会进行热更检查。如需在开发环境中调试热更,请在client中设置debug为true', + ); return; } const { strategy, dismissErrorAfter, autoMarkSuccess } = options;