So I have a view that provides an Object.
setup(){
provide('string', {foo: 'bar'})
}
On page change using vue-router, I want the loaded component to inject that String but I am getting undefined.
setup() {
const foo = inject('string')
}
Do you have any idea of how can I accomplish this?