Open roy1345 opened 6 months ago
chrome vesion: 124.0.6367.208 64bit
window.onbeforeunload = () => {
console.log('onbeforeunload 卸载 App');
app.unmount();
}
I find a hack solution: umount App beforeunload:
window.onbeforeunload = () => { console.log('onbeforeunload 卸载 App'); app.unmount(); }
Thanks a lot for your help/hack. However for me it doesn't work. Probably because my situation is not exactly the same as described above. I also have multiple plugins that mount as apps and keep running and are not "unmounted".
Vue devtools version
6.6.1
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-wh3but?file=package-lock.json
Steps to reproduce & screenshots
What is expected?
Opening Chrome developer console, going to the Vue devtools should show the entries of the Pinia/Vuex store immediately.
What is actually happening?
Devtools is showing empty Pinia/Vuex store. I have to close the developer console (f12) from Chrome and reopen the developer console to see the Pinia/Vuex store entries.
System Info
The problem occurs on Chrome. On Firefox this does work normally.
Any additional comments?
No response