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 using the browser's back navigation, the filter state becomes desynchronized from the URL parameters. The UI shows outdated filter values while the URL contains the correct ones.
Steps to Reproduce
Apply filters using the filter component (e.g., set city to "New York")
Use browser's back button
Observe that filter UI doesn't match URL parameters
Expected Behavior
Filter state should always be synchronized with URL search parameters, including during browser navigation.
Root Cause
The component uses React state for filters that doesn't get updated when URL changes via browser navigation. The useState(initialFilters) only uses the initial value on first render.
Activity