-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(useUrlSearchParams): restore proper history and navigation behavior #4969
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
…browser's history recording and navigation functions
useUrlSearchParams
has disrupted the browser's history recording and navigation functions
@vueuse/components
@vueuse/core
@vueuse/electron
@vueuse/firebase
@vueuse/integrations
@vueuse/math
@vueuse/metadata
@vueuse/nuxt
@vueuse/router
@vueuse/rxjs
@vueuse/shared
commit: |
Thank you for your PR. Can you add some tests for this feature to prevent future regressions? |
…d or backward button of the browser test
No problem. I have already added the unit tests. |
I noticed that the test you added would still pass even without your fix. This means the test might not be covering the actual bug. Could you double-check the test logic and make sure it would fail without your patch? |
…d or backward button of the browser test
I revised the unit tests to ensure that without my patch, the program would fail the tests. |
useUrlSearchParams
has disrupted the browser's history recording and navigation functionsuseUrlSearchParams
has disrupted the browser's history recording and navigation functions
useUrlSearchParams
has disrupted the browser's history recording and navigation functions
|
||
it('when the user presses the forward or backward button of the browser, the parameters should be updated', async () => { |
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.
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.
personally i prefer having well written test descriptions rather than deferring to an issue
often issue-driven tests can be far too specific imo too
fix #4968 browser's history recording and navigation functions
Before submitting the PR, please make sure you do the following
fixes #123
).Description
fix #4968
Additional context