-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Back Forward Cache Is Not Working #2631
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Reproduction
/
Steps to reproduce the bug
dev tools chrome -> application -> Back-forward cache -> test = Internal error IgnoreEventAndEvict
Open console -> getEventListeners(document) -> visibilitychange
This listener document.addEventListener("visibilitychange", beforeUnloadListener) from the file (node_modules/vue-router/dist/vue-router.js ), does not allow you to use bfcache
if you delete it, everything works
getEventListeners(document).visibilitychange?.forEach(listener =>
document.removeEventListener('visibilitychange', listener.listener)
)
Expected behavior
add it only if scrollBehavior parameters are added
Actual behavior
it is always added
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request