Skip to content

Commit

Permalink
v10.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm committed Apr 22, 2024
1 parent d1ecfb3 commit 782b0e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 4 additions & 2 deletions src/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 782b0e5

Please sign in to comment.