Skip to content
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

启动服务后报无法更新组件错误 #1096

Open
13713668351 opened this issue Mar 23, 2021 · 2 comments
Open

启动服务后报无法更新组件错误 #1096

13713668351 opened this issue Mar 23, 2021 · 2 comments

Comments

@13713668351
Copy link

devScripts.js:5836 Warning: Cannot update a component (i) while rendering a different component (Layout). To locate the bad setState() call inside Layout, follow the stack trace as described in https://fb.me/setstate-in-render
in Layout (created by Context.Consumer)
in withRouter(Layout) (created by LoadableComponent)
in LoadableComponent (created by Context.Consumer)
in Route (created by RouterComponent)
in Switch (created by RouterComponent)
in Router (created by RouterComponent)
in RouterComponent
in Provider (created by _DvaContainer)
in _DvaContainer
in WEBPACK_DEFAULT_EXPORT
in WEBPACK_DEFAULT_EXPORT

@superlbr
Copy link
Collaborator

warning只是警告而已,不是错误。
听作者说,有大版本要升级,期待下吧

@wooxyz
Copy link

wooxyz commented Apr 25, 2021

我也遇到这个问题,期待尽快吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants