-
Notifications
You must be signed in to change notification settings - Fork 446
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels