Provide a way to abstract window.location.href
usage
#64986
joaoGabriel55
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
window.location.href
usageuseSearchParams
, for example.Non-Goals
No response
Background
During a code review on a friend's Next.JS project, we thought that would be good to have a custom hook that could provide us, with a way to get the full URL from the application. Instead of implementing this on our side, Next.JS could already have this out-of-the-box
Proposal
Possible implementations
A new hook focused on that
Or add this feature at
useRouter
I'm interested in contributing
Beta Was this translation helpful? Give feedback.
All reactions