react-activation icon indicating copy to clipboard operation
react-activation copied to clipboard

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.

Open qinzhiwei1993 opened this issue 1 year ago • 5 comments
trafficstars

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标签的时候,大家遇到过这个问题吗?

qinzhiwei1993 avatar Jan 24 '24 08:01 qinzhiwei1993

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

CJY0208 avatar Jan 29 '24 07:01 CJY0208

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

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

duwenbin0316 avatar Mar 08 '24 10:03 duwenbin0316