Store
It is a minimalist solution for synchronizing the state of applications or component systems that require controlled bidirectional data management.
Getting Started
Stores in Atomico are web components with behavior similar to the Atomico context API, for example:
Creating the store
Defining the store
Consuming the store
Bidirectional State Management?
If you're familiar with the Atomico context API, you'll know it's unidirectional, meaning the parent dispatches updates to the child. @atomico/store is bidirectional, allowing any store consumer to synchronize. This means the parent can dispatch updates to the child, and the child can dispatch updates to the parent.
Last updated