Setup & Installation
What This Skill Does
Generates Zustand stores with TypeScript types, subscribeWithSelector middleware, and a clear split between state interfaces and action interfaces. Covers store creation, selector patterns, and subscribing to state changes outside React components. Gets the subscribeWithSelector boilerplate and TypeScript interface separation right on the first try, skipping the trial-and-error of getting middleware generics and selector patterns to play well together.
When to use it
- Working with zustand store ts functionality
- Implementing zustand store ts features
- Debugging zustand store ts related issues
