@mpxjs/core 2.10.4-beta.3 → 2.10.4-beta.6

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.4-beta.3",
3
+ "version": "2.10.4-beta.6",
4
4
  "description": "mpx runtime core",
5
5
  "keywords": [
6
6
  "miniprogram",
@@ -138,7 +138,7 @@ export default function createApp (options) {
138
138
  useEffect(() => {
139
139
  const changeSubscription = ReactNative.AppState.addEventListener('change', (currentState) => {
140
140
  if (currentState === 'active') {
141
- let options = global.__mpxEnterOptions
141
+ let options = global.__mpxEnterOptions || {}
142
142
  const navigation = getFocusedNavigation()
143
143
  if (navigation) {
144
144
  const state = navigation.getState()