Releases: load28/context-query
Releases · load28/context-query
@context-query/react v0.3.1
@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
v0.2.0
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>