1.3.2 • Published 9 years ago

@findify/rstate v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago

##Rstate A dead-simple state container - redux api compatible on the basic level (createStore, dispatch, subscribe, getState)

###Why? I've found out that redux is an overkill for some projects, but I still liked the way it worked.

###How? I've implemented a simple module that has a storage, allows to bind subscribers and dispatch actions. The store has a redux compatible api: createStore, dispatch, subscribe, getState.

###Techy side You don't get the dispatch event on each change. Although the state gets updated on each dispatch, I then use requestAnimationFrame/cancelAnimationFrame to threshold the number of dispatch events to keep the resulting rendering as effective to the given platform as possible.

###Typescript? Yes. Look at the interface definitions - pretty, pretty stuff.

1.3.2

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.1.0

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago