1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-11-01 05:43:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2024-04-22 09:57:32 +08:00
parent d1ecfb3f93
commit 782b0e5227
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-native-update", "name": "react-native-update",
"version": "10.4.1", "version": "10.4.2",
"description": "react-native hot update", "description": "react-native hot update",
"main": "src/index.ts", "main": "src/index.ts",
"scripts": { "scripts": {

View File

@@ -159,8 +159,10 @@ export const PushyProvider = ({
const markSuccess = client.markSuccess; const markSuccess = client.markSuccess;
useEffect(() => { useEffect(() => {
if (__DEV__) { if (__DEV__ && !options.debug) {
console.info('检测到在DEV环境不会进行热更新检查'); console.info(
'您当前处于开发环境且未启用debug不会进行热更检查。如需在开发环境中调试热更请在client中设置debug为true',
);
return; return;
} }
const { strategy, dismissErrorAfter, autoMarkSuccess } = options; const { strategy, dismissErrorAfter, autoMarkSuccess } = options;