Join GitHub today
Possibility to log all state changes (not only actions or mutations) #1448
What problem does this feature solve?
With these built-in logger plugin we are able to subscribe to our store and log all state mutations.
But, it looks like, for now, we are not able to log all state changes other than mutations or actions. What does it mean? For example, if we are controlling the state of the application drawer (like this one on the Vuetify project or more specifically some inline editing actions in the data table component) and we would like to connect (even mapping) the store state directly in the component we will not be able to log the mutations there, since there's no mutation action involved.
Maybe we could use events to try to accomplish that but I'll be far more difficult.
I think it could be very good for us we have the possibility to log state changes that are not triggered by mutations and actions too.
What does the proposed API look like?