-
Notifications
You must be signed in to change notification settings - Fork 241
ui: Extend useURLState and useQueryState hooks #6138
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
base: main
Are you sure you want to change the base?
Conversation
|
✅ Meticulous spotted 0 visual differences across 328 screens tested: view results. Meticulous evaluated ~4 hours of user flows against your PR. Expected differences? Click here. Last updated for commit 1babb57. This comment will update as new commits are pushed. |
| const result = encodeProfileFilters(value); | ||
| return result; | ||
| }, | ||
| mergeStrategy: 'preserve-existing', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to apply the mergeStrategy in this component and pass the final value into the URLState?
Adding that functionality into the URL State might complicate things a lot.
f605253 to
1c1f139
Compare
491c914 to
a60cdfe
Compare
a60cdfe to
49bd403
Compare
49bd403 to
d2b86db
Compare
This PR refactors the URL state hooks to export raw setters that external wrapper hooks can use. Changes: - useQueryState: Exports raw URL setters (setExpressionParam, setSumByParam, setGroupByParam) for external wrapper hooks - useProfileFilters: Exports setAppliedFilters for wrapper hooks
d2b86db to
1babb57
Compare
This PR refactors the URL state hooks to export raw setters that external wrapper hooks can use.
Changes: