Open Sopamo opened 6 years ago
I had a bug in the code (which I fixed) which made it appear like the "deepness" is an issue. It isn't. I updated the reproduction link and the issue description accordingly. I also forgot to mention that when outputting the value of the variables they are correct, only when using them as a class they do not work. You see this in the reproduction.
Version
2.5.16
Reproduction link
https://github.com/Sopamo/vue-ssr-deep-state-bug-reproduction
Steps to reproduce
npm run dev
What is expected?
The class of both divs should reflect the value of their variables
What is actually happening?
The classes of both elements are wrong (they have the class "true" despite them having changed to "false"). The issue is gone when you navigate between page B and page A. The issue only occurs when you are reloading the browser on page A.
The inital state is that both variables are true. They are both being set to false in the entry-client.js file with the
store.replaceState
method.