Closed mrc-bsllt closed 3 months ago
See #115
See #115
I do not know whether it is a good choice to keep the persistence option at true. Btw, thanks for the answer, fixed it.
Ya it's something I considered turning off, but for most people starting out I think having the map instance not reset on route changes is better.
When nuxt-mapbox is not included within the modules in the nuxt.config.ts file, everything works normally, the onMounted hook is triggered every time I land on the page (or when a component is mounted). But, when I include it in the modules, the onMounted hook is only triggered the first time (it almost seems to be cached).
Reproduction link: https://stackblitz.com/edit/nuxt-starter-csufwc?file=app.vue,pages%2Findex.vue,nuxt.config.ts