proposal-signals / signal-polyfill

Implementation tracking the current state of https://github.com/tc39/proposal-signals
Apache License 2.0
185 stars 13 forks source link

Alternative Signal.Volatile implementation #31

Open divdavem opened 1 week ago

divdavem commented 1 week ago

This PR contains an implementation of Signal.Volatile (cf https://github.com/tc39/proposal-signals/issues/237) I have copied the tests written by @PsychoLlama in his implementation (cf https://github.com/PsychoLlama/signal-polyfill/pull/1) but the implementation in this PR is different: Signal.Volatile extends Signal.Computed, which requires less code.