Save column filters externally

Hi, I wanna save column filters in an external variable ( to put those on URL )

I've tried to read columnFilters from the state but I always get an empty array.

     onColumnFiltersChange={(updater) => {
                    const columnFilters = (tableInstanceRef.current as any).getState().columnFilters;
                    console.log("@@@@ FILTERS", columnFilters); \\ always []
                  }}
Was this page helpful?