Skip to content

Fix: apply category filter from URL query on initial load (#64)#65

Open
Ahmad-code077 wants to merge 1 commit intoreliverse:mainfrom
Ahmad-code077:fix/filter-query-param
Open

Fix: apply category filter from URL query on initial load (#64)#65
Ahmad-code077 wants to merge 1 commit intoreliverse:mainfrom
Ahmad-code077:fix/filter-query-param

Conversation

@Ahmad-code077
Copy link
Copy Markdown

This fixes issue #64: Products page now reads the category query parameter
from the URL on initial load and correctly filters products accordingly.

  • Uses useSearchParams from Next.js App Router
  • Updates selected category on first render
  • No breaking changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant