T
TanStack3y ago
stormy-gold

Server side filters circular issue

In React, I'd like to collect columnFilters into an object that I use to fetch data from the server. However, to do that, I need the table reference from useTable(). Now, in order to useTable(), I need to have data fetched (data: prop is required). But in order to have data fetched, I need columnFilters to make filters for server-side fetch. Is there a good pattern of doing this, or maybe am I missing some part of the API? I don't see server side filtering in docs examples either; seems like there is only client side examples.
1 Reply
stormy-gold
stormy-goldOP3y ago
I do use a crutch with useRef now, but I wonder if we can avoid such

Did you find this page helpful?