Skip to content

Commit

Permalink
no need to unloadRecord after destroyRecord in perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed May 5, 2021
1 parent 23232ec commit d417dcd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export default Route.extend({
parent
.get('children')
.toArray()
.map((child) => child.destroyRecord().then(() => run(() => child.unloadRecord())))
.map((child) => child.destroyRecord())
);
const parentPromise = parent.destroyRecord().then(() => run(() => parent.unloadRecord()));
const parentPromise = parent.destroyRecord();

return all([childrenPromise, parentPromise]).then(() => {
performance.mark('end-destroy-records');
Expand Down

0 comments on commit d417dcd

Please sign in to comment.