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

Route middleware is not triggered on page load - Static mode #678

Open
azpery opened this issue Jun 13, 2022 · 0 comments
Open

Route middleware is not triggered on page load - Static mode #678

azpery opened this issue Jun 13, 2022 · 0 comments

Comments

@azpery
Copy link

azpery commented Jun 13, 2022

Hello everybody,

I'm trying to implement a cleaned auth middleware. But I'm facing an issue : on page load the route middleware, placed on the layout
@Component({ name: 'default', middleware: ['user'] })
is not triggered on page load. But is triggered on page switch and on page load with ssr enabled on server side.

When I nuxt generate locally, the route middleware is triggered on client side, which I believe is correct.

Are you aware of this anomaly?

Thank You

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

No branches or pull requests

1 participant