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 using React, TanStack Router, and TanStack Query to manage table state and URL synchronization.
The table is built using the Shadcn Table (based on DiceUI Data Table).
I'm facing issues where the filters and sorting states are not correctly synchronized between the UI, table data, and the URL parameters.
How to reproduce
Open the live demo or local project.
Apply a filter.
The URL updates correctly, but the filter chip does not appear on the first attempt.
Apply the same filter again — now the chip appears.
Apply a sorting option.
The sorting label does not appear immediately.
After a few seconds, the sorting resets automatically.
Refresh the page.
The URL still shows the filter/sort parameters, but the data and UI are not in sync.
Describe the bug
I'm using React, TanStack Router, and TanStack Query to manage table state and URL synchronization.
The table is built using the Shadcn Table (based on DiceUI Data Table).
I'm facing issues where the filters and sorting states are not correctly synchronized between the UI, table data, and the URL parameters.
How to reproduce
Open the live demo or local project.
Apply a filter.
Apply a sorting option.
Refresh the page.
Link to Reproduction
Expected Behavior
Filters and sorting should remain fully synchronized between:
Actual Behavior
Visual Reference
🎥 Video Demo
isuucs.video.mp4
🖼️ Screenshots
Problem Screenshot
Expected
Above: The URL shows active filters, but the UI filter chips are not highlighted.
Additional information