Skip to content

Releases: load28/context-query

@context-query/react v0.3.1

30 Aug 14:01
Compare
Choose a tag to compare

@context-query/react v0.3.1

Published to npm registry.

Installation

# Install specific version
npm install @context-query/[email protected]

# Install latest stable version
npm install @context-query/react@latest

v0.2.1

16 Mar 08:43
c658dbf
Compare
Choose a tag to compare

Optimizing Build Configuration for Core and React

v0.2.0

16 Mar 06:34
Compare
Choose a tag to compare

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>