Mutate Application State Properties Directly with Pinia’s storeToRefs()

InstructorFilip Hric

Share this video with your friends

Send Tweet

Instead of calling an action function to change the state, we can choose to change it directly by importing the attributes from our store. In order to not loose reactivity while destructuring properties we can use storeToRefs() function.