项目是很老的项目,最近升级为umi4,项目中不仅在用dva还混用了redux,升级后的redux里的state和dva里的state会冲突。。。 #12309
Unanswered
kaixinobaoo
asked this question in
Q&A
Replies: 1 comment 2 replies
-
如果旧项目 layout 是完全自己写的,就没必要迁就 umi 4 的 layout ,路由信息可以从 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
项目从umi2升到umi4。。layout是自定义的,想知道把props.children替换为后,想知道之前的redux里的state如何获取?目前这种写法导致渲染的组件拿到的state只有之前的redux里的state且报错dva中的state找不到。
<ProLayout {...customProps}> <Provider store={store}> <div className={styles.contentWrap}> <Outlet /> </div> </Provider> <ProLayout>
Beta Was this translation helpful? Give feedback.
All reactions