Skip to content
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

Add useParam(event) like useQuery(event) #120

Closed
mik7up opened this issue May 20, 2022 · 2 comments · Fixed by #158
Closed

Add useParam(event) like useQuery(event) #120

mik7up opened this issue May 20, 2022 · 2 comments · Fixed by #158
Labels
enhancement New feature or request

Comments

@mik7up
Copy link

mik7up commented May 20, 2022

To access parameters need to do event.context.params.name.
Why not exists useParam(event)?

@pi0
Copy link
Member

pi0 commented May 20, 2022

useQuery actually parses query from event object but params are already available... But I don't see any reason not to introduce useRouterParams(event) as syntax sugar 👍🏼

@pi0 pi0 added the enhancement New feature or request label May 20, 2022
@NozomuIkuta
Copy link
Member

NozomuIkuta commented Aug 3, 2022

@pi0

This feature looks as easy to implement as #147.
I will submit a PR. 🙋‍♀️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants