npm install
npm run dev
- Access localhost:8080/user - you will see Date object against users property
- Now, open localhost:8080/item - you will see Date object set for both the propeties, item as well as users
On each reload of /item the object for users should be empty and vice-versa
Because we are using modules to assemble our store and each module is in a separate .js file. This .js only exports the store object and each subsequent refresh/load does not reloads the object.
We should instead return a function from individual modules and call those functions to assemble the store. something like this: https://forum.vuejs.org/t/debugging-state-pollution-with-the-new-behaviour-of-vue-2-3-ssr/11724/4