[Vue warn]: onUnmounted ... after upgrading to 4.2.0
- cached model fails to reload
#784
Closed
5 tasks done
4.2.0
- cached model fails to reload
#784
Describe the bug
After updating to
@4.2.0
I have begun seeing this error on mount and it points to myrouter.ts
frommain.ts
I'm caching my
GLTF
model in apinia
store and this technique works fine in4.0.2
.cientos@4.0.0-next.1
.When I leave my experience page, I get the same error again and my cached model does not load.
Reproduction
https://stackblitz.com/edit/tresjs-minimal-reproduction-7zvlfu?file=src%2Fstore.ts,src%2FApp.vue,src%2Fcomponents%2FTheExperience.vue
Steps to reproduce
useGLTF
and store it in apinia
store as ashallowRef
.onMount
of the component that uses the model thevue warn
appears.System Info
Used Package Manager
npm
Code of Conduct
The text was updated successfully, but these errors were encountered: