Skip to content

URL Hook Logic #60

Open
Akashu9 wants to merge 1 commit into
mainfrom
url-hook-logic
Open

URL Hook Logic #60
Akashu9 wants to merge 1 commit into
mainfrom
url-hook-logic

Conversation

@Akashu9
Copy link
Copy Markdown

@Akashu9 Akashu9 commented May 19, 2026

Task: #21

Implemented useTableFilters to keep search, page, and category synchronized with the browser URL query params. The hook preserves unrelated query params, removes empty/default values, and resets page when search/category changes.

Also wired the hook into the UI:

search input updates ?search=...
pagination updates ?page=...
category filter updates ?category=...
table data reacts to URL state
clear filters removes the table filter params
Verified with:

npm run build
npm run lint
Residual risk: no automated UI tests were added, so URL sync behavior is currently covered only by build/lint and manual verification.

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