Providing computed values from plugin
I am trying to provide a computed value from a plugin, and I'm not sure why it's not working. I have two plugins here:
https://stackblitz.com/edit/github-vcbsj4-pqa2gg?file=plugins%2F0.init.ts,app.config.ts,app.vue,plugins%2F1.other.ts
The 0.init is commented out, but works as expected when uncommented. It uses app config which is reactive.
The 1.other is the plugin I'm working on returns a computed. In the app, I don't see the value change.
Hoping this is something obvious.
https://stackblitz.com/edit/github-vcbsj4-pqa2gg?file=plugins%2F0.init.ts,app.config.ts,app.vue,plugins%2F1.other.ts
The 0.init is commented out, but works as expected when uncommented. It uses app config which is reactive.
The 1.other is the plugin I'm working on returns a computed. In the app, I don't see the value change.
Hoping this is something obvious.
StackBlitz
Create a new Nuxt project, module, layer or start from a theme with our collection of starters.
