mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
- Add zustand dependency for modern state management - Create three separate stores for better code organization: - useMachineStore: Machine connection, status, and operations - usePatternStore: Pattern data, offset, and upload state - useUIStore: Pyodide and UI-specific state - Migrate App.tsx from useBrotherMachine hook to Zustand stores - Use useShallow for optimized multi-value selections - Implement dynamic polling intervals based on machine state - Add ESLint ignore for .vite build directory Benefits: - Better separation of concerns with logical store divisions - Improved performance through selector-based subscriptions - Cleaner code replacing 445-line hook with maintainable stores - Full TypeScript support with proper typing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| useMachineStore.ts | ||
| usePatternStore.ts | ||
| useUIStore.ts | ||