[✨] qwik-city: useLocation should provide makePath #146
wmertens
started this conversation in
Proposals For Qwik
Replies: 3 comments
-
I don't think this belong in useLocation() |
Beta Was this translation helpful? Give feedback.
0 replies
-
@manucorporat is it because it would create overhead? How about a useMakePath() hook that calls useLocation? |
Beta Was this translation helpful? Give feedback.
0 replies
-
We moved this issue to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem?
When trying to redirect within the application, it's hard to do it properly.
Describe the solution you'd like
useLocation
should returnmakePath
function that takespath
and/orparams
and/orquery
, merging those to return the correct absolute path for the application.Describe alternatives you've considered
Adhoc path generation. People will often forget query strings and the base path
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions