Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sukima/signal-polyfill
- Owner: sukima
- License: apache-2.0
- Created: 2024-05-15T13:05:50.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-26T04:48:49.000Z (6 months ago)
- Last Synced: 2024-10-21T21:02:16.544Z (30 days ago)
- Language: TypeScript
- Size: 76.2 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`