[✨] qwik-city: useLocation should provide makePath #146
Replies: 4 comments
-
|
I don't think this belong in useLocation() |
Beta Was this translation helpful? Give feedback.
-
|
@manucorporat is it because it would create overhead? How about a useMakePath() hook that calls useLocation? |
Beta Was this translation helpful? Give feedback.
-
|
We moved this issue to |
Beta Was this translation helpful? Give feedback.
-
|
I think I don't like this idea any more. Just writing the paths or creating a helper is simple enough. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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
useLocationshould returnmakePathfunction that takespathand/orparamsand/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