-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在全局model的history.listen中调用dispatch,同时Link的to属性添加query参数会导致栈溢出 #2693
Comments
我也碰到过这个这个问题。。开发环境遇到过,正式环境没有遇到 |
我也是这个,有好的解决方法嘛 |
需要花时间看,可能和 react-reudx 升级有关。 |
这个问题有点严重鸭~~ 组件里面想跳转一下路由。 只要在订阅里面有diapatch就会栈溢出 |
找到了一种曲线救国的解决办法。
第二步对应model (这里是 全局global)监听等待匹配 onRouteChange action
|
新版本有这个问题,在 subscriptions: {
setup({ dispatch, history }) {
return history.listen(location => {
//这里写会栈溢出
dispatch({
type: 'updateState',
});
});
},
}, 在以下版本没有这个问题 临时方案:项目中安装 |
一样的问题 |
What happens?
Mini Showcase Repository(REQUIRED)
https://github.com/feibi/umi-bug.git
Expected behavior
Context
The text was updated successfully, but these errors were encountered: