Skip to content

Commit d284665

Browse files
committed
abstraction for caching objects for diff purpose
1 parent b82e4cd commit d284665

7 files changed

Lines changed: 834 additions & 663 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ If you rewrote beforeSave methods, be careful and pass the optional `opts` objec
1515
If you wish to keep sending all your fields to the server each you save (which you shouldn't). Pass `{force: true}` as options in the `save` method.
1616
- re-population after save.
1717
Until 2.0.0 when you wanted to repopulate an object after saving it (ie making another query), you had to pass it as the first argument of the save method. Now, it has to be given as an options object containing `{populate: whateverYouNeedToPopulate}`
18+
- Empty arrays: when building an active record, undefined arrays will not be instantiated to empty arrays (to prevent overriding unselected fields). Check for the actual presence of the array before trying to push.

0 commit comments

Comments
 (0)