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:
preventDirtyFlag
option
You can now pass thepreventDirtyFlag: true
option to anyupdate
orinsertOrUpdate
call to prevent the$isDirty
flag from being set totrue
for this specific action / mutation.
User.update({
data: myUserToUpdate,
preventDirtyFlag: true
});
resetAllDirtyFlags
action
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 });