Skip to content

2.6.3

Compare
Choose a tag to compare
@lukejagodzinski lukejagodzinski released this 28 Nov 22:52
· 13 commits to v2 since this release
  • Workaround for the issue #694. From now all the storage operation options are being passed to the event object. For example when calling the save method:
user.save({ fields: ["firstName"] });

The fields option will be available in the event handler.

events: {
  beforeSave(e) {
    if (
      e.fields &&
      e.fields.includes("firstName") &&
      e.currentTarget.isModified("firstName")
    ) {
      // Do something...
    }
  }
}