vue-pizza
vue-pizza copied to clipboard
Fix store state replacement
trafficstars
When replacing the store state with simple variable assignment, the state object looses its observer and won't be reactive anymore.
Instead of replacing the whole state, each of the state's properties should be replaced.
Source: https://github.com/vuejs/vuex/issues/1118