react-native-update 10.29.0-beta.1 → 10.29.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/client.ts +2 -1
- package/src/provider.tsx +3 -3
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -429,8 +429,9 @@ export class Pushy {
|
|
|
429
429
|
const errorMessage = `pdiff error: ${e.message}`;
|
|
430
430
|
errorMessages.push(errorMessage);
|
|
431
431
|
lastError = new Error(errorMessage);
|
|
432
|
-
if (__DEV__) {
|
|
432
|
+
if (__DEV__ && !full) {
|
|
433
433
|
succeeded = 'pdiff';
|
|
434
|
+
log('当前是开发环境,无法执行增量式热更新。如果需要在开发环境中测试全量热更新,请打开“忽略时间戳”开关再重试。');
|
|
434
435
|
} else {
|
|
435
436
|
log(errorMessage);
|
|
436
437
|
}
|
package/src/provider.tsx
CHANGED
|
@@ -256,9 +256,9 @@ export const UpdateProvider = ({
|
|
|
256
256
|
}
|
|
257
257
|
const { checkStrategy, dismissErrorAfter, autoMarkSuccess } = options;
|
|
258
258
|
if (autoMarkSuccess) {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
setTimeout(() => {
|
|
260
|
+
markSuccess();
|
|
261
|
+
}, 1000);
|
|
262
262
|
}
|
|
263
263
|
if (checkStrategy === 'both' || checkStrategy === 'onAppResume') {
|
|
264
264
|
stateListener.current = AppState.addEventListener(
|