You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using getCurrentUser in a middleware and clearing the cache via nuxi cleanup, page navigation always reloads the page instead of staying client-side when running nuxt dev. Very weird. Actually it only happens when deleting the node_modules/.cache/vite dir.
When rerunning nuxt dev it's working as expected.
Additional observation: Is only the case for a global middleware. When setting one via definePageMeta it's working as expected.
The text was updated successfully, but these errors were encountered:
dword-design
changed the title
Page reloading when navigating, having a middleware with getCurrentUser and having node_modules/.cache/vite cleared
Page reloading when navigating, having a global middleware with getCurrentUser and having node_modules/.cache/vite cleared
May 6, 2025
Reproduction
https://github.com/dword-design/demo-vuefire-page-reloads-cache
Steps to reproduce the bug
When using
getCurrentUser
in a middleware and clearing the cache vianuxi cleanup
, page navigation always reloads the page instead of staying client-side when runningnuxt dev
. Very weird. Actually it only happens when deleting thenode_modules/.cache/vite
dir.When rerunning
nuxt dev
it's working as expected.Additional observation: Is only the case for a global middleware. When setting one via
definePageMeta
it's working as expected.rm -rf node_modules/.cache/vite && pnpm dev
Expected behavior
The page is switched without reloading the page.
Actual behavior
The page is reloaded.
Additional information
Probably related to #1625.
The text was updated successfully, but these errors were encountered: