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

Not working properly with react version 18

Open gmanikamevd opened this issue 2 years ago • 4 comments

It creates duplicate row and columns both with react version 18

duplicate_row_column

gmanikamevd avatar Mar 03 '23 13:03 gmanikamevd

I have the same issue...

san7iix avatar Mar 08 '23 23:03 san7iix

same ... it's not working with react v18

TuanMinPay avatar Mar 22 '23 07:03 TuanMinPay

There is a fork of this repo published in issue #150

jamesthesken avatar Apr 22 '23 16:04 jamesthesken

@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

avinean avatar Sep 17 '24 06:09 avinean