refine icon indicating copy to clipboard operation
refine copied to clipboard

fix(core): reset table filters and sorters on current page re-navigate via side-nav

Open arndom opened this issue 1 year ago • 2 comments

  • Update useTable hook to handle case where a user navigates to current page by clicking side-nav link intending to reset the filters and sorters.

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://refine.dev/docs/guides-concepts/contributing/#commit-convention

Bugs / Features

  • [x] Related issue(s) linked
  • [ ] Tests for the changes have been added
  • [ ] Docs have been added / updated
  • [x] Changesets have been added https://refine.dev/docs/guides-concepts/contributing/#creating-a-changeset

What is the current behavior?

In a table, apply some filters/sorters then click the menu item in the sidebar, the URL should reset filters and sorters to the default but it doesn't.

This can be previewed at https://example.admin.refine.dev/orders

What is the new behavior?

The above has been resolved. It resets the query params for filters and sorters back to their defaults.

fixes #6300

Notes for reviewers

arndom avatar Oct 06 '24 21:10 arndom