0.0.38 • Published 4 months ago

active-store v0.0.38

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

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
0.0.37

4 months ago

0.0.38

4 months ago

0.0.35

5 months ago

0.0.36

5 months ago

0.0.34

5 months ago

0.0.33

5 months ago

0.0.32

6 months ago

0.0.31

6 months ago

0.0.30

6 months ago

0.0.29

6 months ago

0.0.28

6 months ago

0.0.27

6 months ago

0.0.26

7 months ago

0.0.25

8 months ago

0.0.24

8 months ago

0.0.23

8 months ago

0.0.22

8 months ago

0.0.21

8 months ago

0.0.20

8 months ago

0.0.19

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago