File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -294,15 +294,16 @@ injections isBackend isLocalDev =
294
294
295
295
const die = function() {
296
296
//console.log('App dying');
297
+
298
+ // Needed to stop Time.every subscriptions.
299
+ // This must be done before clearing the stuff below.
300
+ _Platform_enqueueEffects(managers, _Platform_batch(_List_Nil), _Platform_batch(_List_Nil));
301
+
297
302
managers = null;
298
303
model = null;
299
304
stepper = null;
300
305
ports = null;
301
306
_Platform_effectsQueue = [];
302
-
303
- // Do we need to call these functions? Or will the `= []` be enough?
304
- // _Platform_enqueueEffects(managers, $$elm$$core$$Platform$$Cmd$$none, $$elm$$core$$Platform$$Sub$$none);
305
- // _Platform_enqueueEffects(managers, _Platform_batch(_List_Nil), _Platform_batch(_List_Nil));
306
307
}
307
308
308
309
return ports ? {
You can’t perform that action at this time.
0 commit comments