Open justinfagnani opened 1 month ago
As a workaround in cases where you need to unwatch and re-watch, you can throw away the computed and create a fresh one.
For info, this issue is the same as https://github.com/tc39/proposal-signals/issues/216, it is fixed by #16
Reproduction: https://stackblitz.com/edit/signal-polyfil-unwatch-bug?file=src%2Fmain.ts
If a computed is watched by a watcher, then a dependency is updated, then the computed is re-watched by the watcher, the computed will not update.