nuxt fetch does not set data
import { Vue, Component } from 'nuxt-property-decorator'
export default class App extends Vue {
something = ''
// The problem is the context
async fetch({ params }: Context) {
this.something = 'john doe'
}
}
// This will work (without using the context)
export default class App extends Vue {
something = ''
async fetch() {
this.something = 'john doe'
}
}