Skip to content

Releases: vuex-orm/plugin-change-flags

v1.2.3

16 Mar 14:01
Compare
Choose a tag to compare

Fixes

  • #6 Fix SSR error window is not defined.

Exposing flags when using toJSON

20 Mar 17:01
Compare
Choose a tag to compare

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

04 Mar 14:45
Compare
Choose a tag to compare

This releases adds the following:

  • preventDirtyFlag option
    You can now pass the preventDirtyFlag: true option to any update or insertOrUpdate call to prevent the $isDirty flag from being set to true 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 to false.
store.dispatch['entities/resetAllDirtyFlags']({}, { root: true });