@mpxjs/core 2.10.14-beta.14 → 2.10.14-beta.15

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/core",
3
- "version": "2.10.14-beta.14",
3
+ "version": "2.10.14-beta.15",
4
4
  "description": "mpx runtime core",
5
5
  "keywords": [
6
6
  "miniprogram",
@@ -420,6 +420,11 @@ function usePageStatus (navigation, pageId) {
420
420
  set(pageStatusMap, pageId, '')
421
421
  }
422
422
  useEffect(() => {
423
+ if (navigation.isFocused && navigation.isFocused()) {
424
+ Promise.resolve().then(() => {
425
+ pageStatusMap[pageId] = 'show'
426
+ })
427
+ }
423
428
  const focusSubscription = navigation.addListener('focus', () => {
424
429
  pageStatusMap[pageId] = 'show'
425
430
  })