-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Feat: memory location search hook #497
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v3 #497 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 1 1
=========================================
Hits 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @mitulagr2, thanks for taking the time to fix this. I’m currently working on an app that makes heavy use of URL search parameters to encode/share UI state, so I’m quite interested in better testing support for the I’ve tested your changes and noticed a few issues:
I’ve tried to fix these issues here: https://github.com/tillprochaska/wouter/tree/memory-location-search-hook @molefrog I’ve seen that this PR has been open for quite a while. Is there anything else I could help with to move this forward? I saw that the recent release includes a new |
|
Sadly, I started reviewing this PR a while a ago and I didn't press send. |
@molefrog Thanks for the update! @mitulagr2 In case this PR isn’t relevant to you anymore or you don’t have time, feel free to let me know and I’m happy to pick up the PR and apply the requested changes :) |
Thanks for the review! I'll push the changes by tomorrow |
@molefrog @tillprochaska Could you please let me know if there's anything else that needs to be changed? Currently, the memory location hook does not throw any error if both, explicit search parameter and path with search query are used simultaneously
|
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.
Hi @mitulagr2, that’s great, thank you!
I think there are still two small issues where there memory location implementation would be different from the default browser location implementation (see comments below).
Thank you for the detail! I've made said changes. |
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.
LGTM!
Co-authored-by: Till Prochaska <[email protected]>
Available in the latest release! |
Thank you both, much appreciated! |
Return
searchHook
frommemoryLocation
. This can be passed toRouter
.fixes #447