What problem does it solve?
Milimo Frontend State Manager provides a cohesive, high-performance blueprint for maintaining and synchronizing a complex React UI, preventing re-render thrash and drift across a multi-slice store.
Core Features & Use Cases
- The 7-slice Zustand God Store (projectSlice, shotSlice, trackSlice, playbackSlice, uiSlice, elementSlice, serverSlice) enables centralized, predictable state management without independent React Contexts, with selective bindings to avoid reconciliation loops.
- Magnetic 1 timeline layout and free-placement tracks enable deterministic layout calculations and flexible overlays for V1, V2, and A1 tracks.
- Safari-specific workarounds for audio drift, draggable hover quirks, and SSE-driven updates ensure reliable playback and UI responsiveness.
- SSE & React Hooks patterns provide robust backend event handling, status polling, and patching of UI state.
Quick Start
Wire the timelineStore.ts slices to your React components and follow the documented state patterns to initialize and maintain Milimo's frontend.