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
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