bgstaal / multipleWindow3dScene

A quick example of how one can "synchronize" a 3d scene across multiple windows using three.js and localStorage
MIT License
16.44k stars 2.56k forks source link

HMR & clear localstorage #22

Open leezhian opened 8 months ago

leezhian commented 8 months ago

This issue occurred while I was reading the code. I opened the live server plugin in vscode. After I modified the code page and updated it, the Windows data in the local storage would be garbled. The length of the array will become longer. And it cannot be fixed, even if cleaning up local storage. (The reason is that Windows Manager has already saved incorrect data and is listening for storage changes. Therefore, the error data has been continuously recovered.) It may never appear in a production environment.