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
I'm trying to make a reusable table component, as shown below. But I keep running into re-rendering issues when the parent page re-renders. Using whyDidYouRender I can see this:
Not using useSortBy or useGlobalFilter seems to mitigate this issue, but I'd like to include them in my component. Am I doing something wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make a reusable table component, as shown below. But I keep running into re-rendering issues when the parent page re-renders. Using

whyDidYouRender
I can see this:Not using
useSortBy
oruseGlobalFilter
seems to mitigate this issue, but I'd like to include them in my component. Am I doing something wrong?Any advice? Thanks
Beta Was this translation helpful? Give feedback.
All reactions