Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): sync url params with internal state for useTable hook #6645

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

arndom
Copy link
Contributor

@arndom arndom commented Jan 14, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

In the useTable hook, when there are internal state changes it can update URL state, but it doesn't work in the reverse. This leads to some edge cases where a change in the url doesn't affect the table.

What is the new behavior?

There is now watcher useEffect that checks if the URL and internal are in sync before making the necessary updates.

fixes (issue)
#6300

Notes for reviewers

@arndom arndom requested a review from a team as a code owner January 14, 2025 07:08
Copy link

changeset-bot bot commented Jan 14, 2025

🦋 Changeset detected

Latest commit: 5462d85

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@refinedev/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Jan 14, 2025

Deploy Preview for refine-doc-live-previews ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5462d85
🔍 Latest deploy log https://app.netlify.com/sites/refine-doc-live-previews/deploys/67860d69b04c360008695be3
😎 Deploy Preview https://deploy-preview-6645--refine-doc-live-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

2 participants