Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

danyal14's avatar

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.

0 likes
0 replies

Please or to participate in this conversation.