-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
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: lifeart/glimmer-next#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);Metadata
Metadata
Assignees
Labels
No labels
