Home

Issue: 2961

Middleware store dispatch or commit before redirect will not write data on server

[issue link]

Sorry, my English is poor
glitch

When you visit index.vue on server
It has a middleware test.js

store.commit('SET_USER', 'hello');
return redirect('/about');

You will be redirect to about.vue
You will find that authUser is null

You click the back link to repeat the above action on client
You will find that authUser has value

This question is available on Nuxt.js community (#c2568)