Usually we can access "this" in fetch() hook and use component's methods or data.
But how to access "this" if context is passed to fetch() hook?
For example, I want to call component's method inside fetch() hook which makes request to API and if nothing found throw error in maybe Nuxtish way
I tried to use context.app.fetchKitties instead of this.fetchKitties, but seems like this is stored in other context's property I guess
fetch (context) {
this.fetchKitties({ color: context.route.params.color })
.catch(err => {
if(err.status === 404) context.error({ message: "No kitty is found!", statusCode: 404})
}
},