Replies: 1 comment
-
I'm not sure about memoizing the stateful data when it is passed in but the editable data example seems to not bother with useMemo at all for the data (only for the columns). Although, this might be because it's using toy, sample data. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I'm wondering if it is a bad idea to use react-table if I want to display data which changes with the user's input in a searchbar.
The reason I'm asking is, that the documentation advocates to use
useMemo
for the data.As far as I understand
useMemo
this would hinder rerendering when the data changes.Would it be bad practice to pass stateful data to the react-table?
Edit: Just had another idea. What if I pass stateful data to the react-table component and inside the component I would first "memoize" the stateful data and then use it like this:
🤔
Beta Was this translation helpful? Give feedback.
All reactions