Skip to content

Add actions, tests and documentation

Latest
Compare
Choose a tag to compare
@vongdarakia vongdarakia released this 01 Apr 22:52
· 5 commits to main since this release

v0.5.0

This release adds a new feature to add reusable functions that manage the context state. This way developers don't have to write the same function over and over again on different components to modify the same data.

setValue has also been changed to have the first argument as the value rather than the state. Initially thought accessing the state would be better so that developer won't have to access the state from contextControl.getState(), but it makes more sense that setValue gives access to the value AND state (as the 2nd argument).

What's Changed

  • Add actions creator
  • Add jest tests
  • Add documentation for functions and types
  • Update README.md
  • Refactor setValue to have both value and state as arguments
  • Expose getStateChanges
  • Expose useSubscribeProvider