
Frontend6 min read
Nuxt Middleware Runs Twice and Breaks Redirects on the First Load
A route guard that sent signed out visitors to the login page worked perfectly on client navigation and bounced signed in users on a hard refresh. The middleware was doing its job twice, in two places, with two different views of the session.
Read moreabout Nuxt Middleware Runs Twice and Breaks Redirects on the First Load