Closed lifeart closed 1 month ago
Once I'm trying to unsubscribe all computeds in the end of render cycle, I got this errors:
Cannot read properties of undefined (reading 'liveConsumerNode')
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'wrapper')
PR to play with: https://github.com/lifeart/glimmer-next/pull/118
How to reproduce:
Open https://deploy-preview-118--g-next.netlify.app/todomvc Add any todo item Try to switch between Active/Completed tabs
If I unsubscribe one-by-one, no issue appears:
export const w = new Signal.subtle.Watcher(() => { scheduleRevalidate(); }); // works fine signalsToUnwatch.forEach((signal) => { w.unwatch(signal); }); // breaking w.unwatch(....signalsToUnwatch);
Once I'm trying to unsubscribe all computeds in the end of render cycle, I got this errors:
PR to play with: https://github.com/lifeart/glimmer-next/pull/118
How to reproduce:
Open https://deploy-preview-118--g-next.netlify.app/todomvc Add any todo item Try to switch between Active/Completed tabs
If I unsubscribe one-by-one, no issue appears: