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

New hook onRequestBegin() #1613

Open
brillout opened this issue Apr 16, 2024 · 0 comments
Open

New hook onRequestBegin() #1613

brillout opened this issue Apr 16, 2024 · 0 comments
Labels
enhancement ✨ New feature or request

Comments

@brillout
Copy link
Member

brillout commented Apr 16, 2024

Description

New hook called right after renderPage() (before routing). I.e. it would be the first hook called upon rendering a page.

Thanks to #1588, the hook could be used for the server- and/or client-side.

Use case: init the vue-query client.

@4350pChris let me know if this becomes urgent / a blocker I'll then implement it sooner rather than later. (AFAICT it should be quick to implement.)

Potential alternative: https://vike.dev/onBeforeRoute.

@brillout brillout added the enhancement ✨ New feature or request label Apr 16, 2024
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

No branches or pull requests

1 participant