From 1c16c7239fb301e138f5fac04005d17bb77bc3c9 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 25 Nov 2015 21:29:39 -0700 Subject: [PATCH] Easiest to just unload the entire store Fixes #66 --- app/mixins/delete-model.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/mixins/delete-model.js b/app/mixins/delete-model.js index e16fb76..73f6ec5 100644 --- a/app/mixins/delete-model.js +++ b/app/mixins/delete-model.js @@ -8,6 +8,7 @@ export default Mixin.create({ actions: { delete: function() { this.get('model').destroyRecord().then(() => { + this.get('store').unloadAll(); this.transitionToRoute(this.get('transitionRoute')); }); },