What is a Vuex plugin?

A Vuex plugin is simply a function that receives the store as the only argument : const myPlugin = (store) => { // called when the store is initialized store. subscribe((mutation, state) => { // called after every mutation. // The mutation comes in the format of `{ type, payload }`. }) }8 Şub 2022

Sizin İçin Seçtik  Neden Vue js?

Leave a Reply

Your email address will not be published. Required fields are marked *