Aug 31, 2022
0
Level 4
How to access this.method in Nuxt async fetch
Hello Guys,
From the page, I am calling local defined method, that breaks the page. Here is my code Example, in with I am moving some code to helloWorld() for reusability.
async fetch({ store, params, error }) {
return Promise.all([]).then((data) => {
this.helloWorld(data) // breaks the page
})
}
Any input will be appreciated.
Please or to participate in this conversation.