0.2.0 • Published 6 years ago

@artalar/tr-redux v0.2.0

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

WIP

tr-redux

mock redux store for reactive magic

Motivation

Problems

  • Selectors are not inspectable (i mean reducers results may inspect in devtools). (It is the common reason for me)
  • Selectors execute at render - error in selector will break render (computed properties must separeted from view)
  • Separation of model - to reducers and selectors
  • Selectors must know about all parents - path to the root. It hard for modular architecture
  • Difficult static type inference
  • Selectors - is manual API to state. It must be manualy memorized - and you always need to think when you need it or not (it one of the reasons of performance problems)
  • classic API reducer is had much boilerplate and static type description boilerplate
  • A part of problems solves by various fabric functions, but without standardization it is harmful

Goals

  • Reducers may depend on other reducers
  • Each reducer must know and react only to depended actions
  • No glitches
  • No breaking changes (at all)
  • Try to no increase bundle size (with tree-shaking)

Example

tr-redux example Todo-list

Also see tests

TODO

  • time travel
  • friendly DX for work with collections
0.2.0

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago