Skip to content

v0.7.4

Compare
Choose a tag to compare
@danielspaniel danielspaniel released this 12 Mar 22:47
· 64 commits to master since this release
  • adds method saveTrackerChanges
    • alias for saveChanges
    • adds a except option to save all changes except the attrs/relationships you don't want to save

Example:

let [company1, company2] = makeList('company', 2),
     user                 = make('user', {company: company1});

run(() => user.setProperties({info: newInfo, company: company2}));
user.saveTrackerChanges({except: ['company']});

user.savedTrackerValue('company'); // =>  {id: company1.id, type: 'company'}  has not been updated