0.0.3 • Published 3 years ago

react-shared-compute v0.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

react-shared-compute

aim

Same compute between multiple components should be executed only once.

Note: Same compute means both function and args are equal.

Combined with react hooks, we can get features below:

  • case 1: when multiple referenced, only compute once. (memo)
  • case 2: no reference, no compute. (lazy)
  • case 3: when function arguments(compute deps) change, go to case 1 or case 2. (reactive)

A reactive lazy memo compute, cool!

demo

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago