tea-design / tea-component

37 stars 6 forks source link

Table 组件 更新完 records 数据,如果再去更新 autotip的isLoading ,就会报错,在React18 #31

Open maliao292 opened 4 months ago

maliao292 commented 4 months ago

Snipaste_2024-07-02_19-21-00

Snipaste_2024-07-02_19-21-00

错误如下: chunk-EL3ZTUGS.js?v=dcc89dea:19655 Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops. at checkForNestedUpdates (chunk-EL3ZTUGS.js?v=dcc89dea:19655:19) at scheduleUpdateOnFiber (chunk-EL3ZTUGS.js?v=dcc89dea:18529:11) at Object.enqueueSetState (chunk-EL3ZTUGS.js?v=dcc89dea:10619:15) at Component.setState (chunk-HS5T2ZWL.js?v=dcc89dea:229:24) at Transition2.updateStatus (chunk-VULOQNGO.js?v=dcc89dea:4038:16) at Transition2.componentDidUpdate (chunk-VULOQNGO.js?v=dcc89dea:4001:14) at commitLayoutEffectOnFiber (chunk-EL3ZTUGS.js?v=dcc89dea:17043:36) at commitLayoutMountEffects_complete (chunk-EL3ZTUGS.js?v=dcc89dea:17976:17) at commitLayoutEffects_begin (chunk-EL3ZTUGS.js?v=dcc89dea:17965:15) at commitLayoutEffects_begin (chunk-EL3ZTUGS.js?v=dcc89dea:17946:19)