DEV Community

Discussion on: Watch for Vuex State changes!

Collapse
 
typerory profile image
Rory

Thank you. I'm monitoring a total count of video cameras in a reactive 'smart' shopping cart. If that number is greater than 4 then vuex queries the db for the model number of our recommended 8-channel NVR. I'm placing that model number in the state.

Now with your solution, I can just watch the state and replace the NVR in the cart with whatever model number is in the state.

Thank you. Thank you. Thank you.

Collapse
 
viniciuskneves profile image
Vinicius Kiatkoski Neves

Super cool man! I think it is very unique use case this one!