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
When the data passed to useDataTable is an empty array then the onRowSelect callback gets called in an infinite loop. I think it has something to do with the deps here:
Both data and column must be memoized, even when they're just an empty array.
But I wonder, if we could just guard against that my memoizing both inside the useDataTable hook, or if this might come with any unwanted side effects.
When the data passed to
useDataTable
is an empty array then the onRowSelect callback gets called in an infinite loop. I think it has something to do with the deps here:The text was updated successfully, but these errors were encountered: