1
0
Code Issues Pull Requests 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
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -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": {

View File

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