Skip to content

Commit d33de18

Browse files
author
徐远翔
committed
fix: 修复 onReactNavigationStateChange 传参错误的问题。
1 parent ddd0b79 commit d33de18

File tree

1 file changed

+1
-1
lines changed
  • packages/umi-preset-react-navigation/src/plugins/generateFiles/react-navigation

1 file changed

+1
-1
lines changed

packages/umi-preset-react-navigation/src/plugins/generateFiles/react-navigation/runtimeTpl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function rootContainer(container, {plugin}) {
2727
plugin.applyPlugins({
2828
key: 'onReactNavigationStateChange',
2929
type: ApplyPluginsType.event,
30-
initialValue: state,
30+
args: {state},
3131
async: true,
3232
});
3333
},

0 commit comments

Comments
 (0)