I have this method updateLocation calling location
setup(props, context) {
const updateLocation = (location = null) =>{
if(location) {
center.value = location
context.emit('mapChange', context.location())
}
}
const location = () => { return {
center:center,
}
}
but I get context.location is not a function. (In 'context.location()', 'context.location' is undefined)
I also tried without context
and also calling the method works from other functions; just not from emit apparently
locationfunction into the context? Can you show us the plugin?