state-ref
Fine-grained reactive state management for UI frameworks
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install state-ref?โผ
Run `npx skills add superlucky84/state-ref --all -g -y` in your terminal to install all skills in this suite globally.
What is state-ref used for?โผ
It is a state management library that uses proxies and the lens pattern to safely read and update deeply nested data. It gives you fine-grained reactivity so only the components using changed values re-render.
Does state-ref work with React and Vue?โผ
Yes. It provides ready-made connectors for React, Preact, Vue, Svelte, and Solid, and you can build custom connectors for other frameworks.
How do I subscribe to state changes in state-ref?โผ
Create a store with createStore, then call watch with a callback. Any .value read inside the callback is tracked automatically, and the callback re-runs when those values change.
Can I use state-ref without a UI framework?โผ
Yes. The core library works standalone in any TypeScript or JavaScript project for reactive state, computed values, and combined stores.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core