Releases: vuex-orm/plugin-change-flags
Releases · vuex-orm/plugin-change-flags
v1.2.3
Exposing flags when using toJSON
Features
Added an exposeFlagsExternally option (default set to true) to expose the 2 flags "externally" when calling toJSON or (JSON.stringify)
Bug fixes
Handling results in actions / mutations instead of Query, following update on Vuex ORM (v0.31.6)
Ability to reset $isDirty flag
This releases adds the following:
preventDirtyFlagoption
You can now pass thepreventDirtyFlag: trueoption to anyupdateorinsertOrUpdatecall to prevent the$isDirtyflag from being set totruefor this specific action / mutation.
User.update({
data: myUserToUpdate,
preventDirtyFlag: true
});resetAllDirtyFlagsaction
This action will run through all the entities marked as dirty in your store and set the corresponding flag tofalse.
store.dispatch['entities/resetAllDirtyFlags']({}, { root: true });