Overview of QuantaJS State Management
QuantaJS is a lightweight, framework-agnostic state management library inspired by the reactivity system of Vue.js and Pinia. It provides reactive state, computed values, and automatic dependency tracking. Key features include:
- Framework Agnostic: Works in vanilla JS, React, Vue, Svelte, Lit, and Astro.
- Automatic Reactivity: Tracks changes in objects, arrays, Maps, and Sets without manual reassignment.
- Type Inference: State, getters, and actions are inferred end-to-end without requiring generics.
- SSR Ready: Uses containers for per-request isolation and provides
dehydrate()/hydrate()methods. - Built-in Async Handling: Actions automatically include
pending,error, andabort()states, eliminating the need for manual loading flags.