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

Can't call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to this.state directly or define a state = {}; class property with the desired state in the ProviderBridge2 component. #304

Open
qinzhiwei1993 opened this issue Jan 24, 2024 · 3 comments

Comments

@qinzhiwei1993
Copy link

Can't call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to this.state directly or define a state = {}; class property with the desired state in the ProviderBridge2 component.

切换tab标签的时候,大家遇到过这个问题吗?

@CJY0208
Copy link
Owner

CJY0208 commented Jan 29, 2024

可以提供一个最简示例吗?

@duwenbin0316
Copy link

可以提供一个最简示例吗?

我也遇到了相同的问题,demo:https://codesandbox.io/p/live/483dfbcc-4ec7-465b-ac1d-dd5399ae124d

@maj1999
Copy link

maj1999 commented Nov 23, 2024

我也遇到的这个问题,请求解决了吗

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

4 participants