Hi!
Why there is no app in the context for async asyncData (ctx) in the client side requests?
There is only for SSR.
Also experiencing this issue with rc2
async asyncData ({ app, redirect }) {
return app.$axios.get('/blog')
gives a 500 error Cannot read property '$axios' of undefined
@pimlie as a temporary workaround you can do
async asyncData ({ store, redirect }) {
return store.$axios.get('/blog')
But I think this is a bug
Fixed in rc3, sorry about this.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Fixed in
rc3, sorry about this.