Installation
yarn add @postrockreverb/derived
npm install @postrockreverb/derived
bun add @postrockreverb/derived
Usage
Store
Observable value with get, set, update and subscribe methods.
Derived
Derived observable value based on a getter function. It subscribes to stores and updates its value when any of the stores change.
Counter: 1Doubled: 2
Contributing
If you would like to contribute to the project, please fork the repository and submit a pull request with your changes.
If you have any questions or suggestions, feel free to reach out through GitHub Issues.