You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike ref(), the inner value of a shallow ref is stored and exposed as-is, and will not be made deeply reactive. Only the .value access is reactive.
shallowRef() is typically used for performance optimizations of large data structures, or integration with external state management systems.
i believe the map object should be wrapped with shallowRef() instead of ref(), as no inner state is being watched, just .value.
The text was updated successfully, but these errors were encountered:
https://github.com/studiometa/vue-mapbox-gl/blob/develop/packages/vue-mapbox-gl/components/MapboxMap.vue#L308
https://vuejs.org/api/reactivity-advanced.html#shallowref
i believe the map object should be wrapped with
shallowRef()
instead ofref()
, as no inner state is being watched, just.value
.The text was updated successfully, but these errors were encountered: