This release improves performance of signals across all measurements. We want to especially highlight @jviide 's work in #161 here as it did outstanding strides on reducing memory usage, improving performance and ending up making signals one (if not the) fastest reactive library at the time of this writing 🎉
Minor Changes
-
#183
79ff1e7
Thanks @jviide! - Add ability to run custom cleanup logic when an effect is disposed.effect(() => { console.log("This runs whenever a dependency changes"); return () => { console.log("This runs when the effect is disposed"); }); });
-
#170
3e31aab
Thanks @jviide! - Allow disposing a currently running effect
Patch Changes
-
#188
b4611cc
Thanks @jviide! - Fix.subscribe()
unexpectedly tracking signal access -
#162
9802da5
Thanks @developit! - Add support forSignal.prototype.valueOf
-
#161
6ac6923
Thanks @jviide! - Remove all usages ofSet
,Map
and other allocation heavy objects in signals-core. This substaintially increases performance across all measurements.