Replies: 1 comment
-
@ZiedHf Try using useEffect for setColumns, instead of react useMemo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
An example in CodeSanbox below.
Whenever I use
React.useMemo
for the first options parameter ofuseTable
, I get this strange behavior in my component.I am trying to filter the Parent Rows and theirs Leafs as well.
But when I filter a leaf name, then I delete the filter input value, it looks like that
filterRows
inuseGlobalFilter
uses an old instance of rows with filtered Leafs.I am confused, is there something I am doing wrong ?
It's work as expected without
React.useMemo
but I am trying to enhance the performance of my component since it became a little bit slow.Exmaple here
Beta Was this translation helpful? Give feedback.
All reactions