DEV Community


Discussion on: Watch for Vuex State changes!

viniciuskneves profile image
Vinicius Kiatkoski Neves Author

Hey Adam, to help our discussion I've created this Codesandbox:

Please check store.js and App.vue. I've tried to create a fetch logic (full user and just username). Please mind the comments and play with comment/uncomment the deep and immediate options.
Also mind the first warning here once you hit the Fetch new username button.