Examples
info
All examples were built using create-vite. Once you clone the repository, simply install the dependencies and run the "dev" script (e.g. yarn dev
) from the example's root directory.
The following examples are available:
- atom-effects - initialize and persist
atom
values usinglocalStorage
. - asynchronous-state - build a deeply nested, asynchronous state graph.
- error-handling - see how rejected promises are handled.
- complex-state - level up with multiple dependencies.
- caching - apply cache policies to optimize network traffic.
- aborting-work - abort work with Stan-provided
AbortSignal
. - dynamic-dependencies - watch a dynamic state graph in action.
- switching-stores - reset all state by switching stores.
- react-suspense - use React Suspense with Stan.
- vanilla - use vanilla Stan if you really have to.