Assure glitch-freedom of propagation algorithm
Closed this issue · 1 comments
I really appreciate the benchmarks at https://github.com/transitive-bullshit/js-reactivity-benchmark?tab=readme-ov-file#results showing great performance of alien-signals. Previously I had adopted preact-signals not only because of good performance but because of the really substantial test suite verifying glitch-freedom in a good variety of geometries such as https://github.com/preactjs/signals/blob/main/packages/core/test/signal.test.tsx#L1383-L1407
Note that these test cases are sufficiently regarded that they are being adopted wholesale by other implementations e.g. the upcoming "solid signals" at https://github.com/solidjs/signals/blob/main/tests/graph.test.ts#L5-L29
I'm excited by work at proposal-signals/signal-polyfill#44 to produce a TC39 proposal API on alien-signals and would love to be able to get confidence that the implementation remains glitch-free, which is a goal of the TC39 work listed at https://github.com/tc39/proposal-signals?tab=readme-ov-file#core-features
Would it be welcomed to contribute/adopt test cases assuring this or could this be done via another approach?
I've always wished there was a framework-agnostic signal test suite repo, like js-reactivity-benchmark, but for testing. I had a quick look at preact's tests and it doesn't seem to be easy to port to alien-signals, if you'd like to open a PR we're definitely welcome!
On the other hand I've been testing alien-signals in Vue's test suite, so it's been glitch-freedom at least in Vue's use cases.