Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sukima/signal-polyfill

A monotonic counter based polyfill for the TC39 Signal proposal
https://github.com/sukima/signal-polyfill

Last synced: 17 days ago
JSON representation

A monotonic counter based polyfill for the TC39 Signal proposal

Awesome Lists containing this project

README

        

# Signal Polyfill

## ⚠️ This polyfill is a preview of an in-progress proposal and could change at any time. Do not use this in production. ⚠️

This is a rewrite of the [original polyfill](https://github.com/proposal-signals/signal-polyfill) which uses a monotonic counter under the hood to track dirty revisions and uses auto-tracking of consumptions during computation to memoize the state values.

It implements the following APIs:

* `Signal.State`
* `Signal.Computed`
* `Signal.subtle.Watcher`