active-store v0.0.38
Basic building blocks
- createState(initialState: T) : { get, set } - state tracked internally
- createComputed(factory: () => T): { get } - state derived from other state
createExternalState(get: () => T, onSubscribe: (notify) => () => void): { get, subscribe, notify } - external state, can return current value of the external state and subscribe/unsubscribe from it as needed
compute(factory: () => T, options?: { trackDependencies?: boolean = true }) : { value : T, dependencies: Set } - compute value of the provided factory function and get list of all dependencies used while executing this function
Derived
- createCollection
- createQuery
- useSelector
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago