add-scoped-store
CommunityCreate per-entity scoped stores for IDs.
Authorkibertoad
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Per-entity scoped Zustand stores solve the problem of isolating state across multiple independent entities (e.g., tabs, conversations, workspaces) without creating global singletons or leaking state between contexts.
Core Features & Use Cases
- Factory to create per-entity scoped stores with an initializer.
- getOrCreate(scopeId) to obtain a per-scope store instance.
- useScoped(scopeId) and useScoped(scopeId, selector) for React components.
- Cleanup behavior to remove unused scopes and prevent memory leaks.
Quick Start
Create a per-entity scoped store and use getOrCreate and useScoped to manage state for a specific ID.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: add-scoped-store Download link: https://github.com/kibertoad/tanstack-react-modules/archive/main.zip#add-scoped-store Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.