Skip to content

v0.2.0

Compare
Choose a tag to compare
@load28 load28 released this 16 Mar 06:34
· 11 commits to main since this release

useContextQuery Hook Changes

  • Modified to subscribe to state using multiple keys as an array
  • Added ability to subscribe to all states when no key is passed

ContextQueryProvider Initial Value Removal

  • Removed initial value from ContextQueryProvider
  • Initialization is now passed as an argument to the createContextQuery function
  • When initializing or changing state outside ContextQueryProvider, use store's updateState, setState (Refer to example code in Readme file)

Rendering Optimization

  • Changed to avoid passing values via props to ContextQueryProvider, eliminating unnecessary re-renders and improving render accuracy only when state is updated

Refactoring

  • Removed unnecessary SubscriptionProvider

Bug Fix

  • Changed Store's state type from Record<string, unknown> to Record<string, any>