You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gmanikamevd It would be nice to see a small reproduction of the issue.
But I assume that you have some setState in the parent component.
Also, I assume you are listening to onChange event on PivotTable, and change the state in onChange callback.
Also, I assume you pass that props to PivotTable as props.
If I describe the situation correctly then wrapping setState with flushSync will help
Activity
san7iix commentedon Mar 8, 2023
I have the same issue...
TuanMinPay commentedon Mar 22, 2023
same ... it's not working with react v18
jamesthesken commentedon Apr 22, 2023
There is a fork of this repo published in issue #150
Modernize analysaattori packages
avinean commentedon Sep 17, 2024
@gmanikamevd It would be nice to see a small reproduction of the issue.
But I assume that you have some
setStatein the parent component.Also, I assume you are listening to
onChangeevent onPivotTable, and change the state inonChangecallback.Also, I assume you pass that props to PivotTable as props.
If I describe the situation correctly then wrapping
setStatewithflushSyncwill help