vue-pizza icon indicating copy to clipboard operation
vue-pizza copied to clipboard

Fix store state replacement

Open gryphon2411 opened this issue 6 years ago • 0 comments
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

gryphon2411 avatar Mar 03 '19 09:03 gryphon2411