v2.0.0-beta.6
·
14 commits
to master
since this release
What's Changed
- Fix/reactivity updates by @JeelGajera in #67
Core Improvements
- Enhanced type system with
RawActions,GetterDefinitions,InferActions, and full store-level type inference. - Reworked
StoreInstanceto correctly merge state, getters, and actions with proper return types. - Added deep reactive bubbling using
parentMapandbubbleTrigger()for upward dependency propagation. - Introduced
reactiveMapto cache proxies and prevent double-wrapping. - Improved nested reactivity with parent linking and cache-aware creation.
- Added deep reactive watcher in
createStore, plus pre-touching logic for stable dependency initialization. - Improved persistence typings and internal dependency maps.
Getters & Actions
- More accurate getter type inference and computed initialization.
- Consistent getter unwrapping via new
resolveGetterValueutility. - Strengthened action binding and flattening logic (
flattenStoreupdates). - Improved set-trap behavior for stable action/getter merging.
React Integrations
- Updated
useComputed,useQuantaStore,useCreateStore, anduseWatchto use the new typing model (GDefs,RawActions). - Major snapshot system rewrite:
- Snapshots now contain live reactive proxies (no more shallow flattening).
- Lazily rebuild snapshots only when invalidated.
- Selector mode now uses stable refs and avoids unnecessary re-renders.
- Improved server snapshot behavior.
Full Changelog: v2.0.0-beta.5...v2.0.0-beta.6