What problem does it solve?
It eliminates brittle Vue component coordination where shared state is duplicated across components or initialized multiple times, causing race conditions, broken reactivity, and hard-to-debug UI behavior in Baseweb-style projects.
Core Features & Use Cases
- Centralized store for shared state: Use a store module to initialize once (e.g., on document ready) and ensure reactivity across components.
- Component lifecycle correctness: Use mounted() for setup/refs access and beforeUnmount() for event listener cleanup to prevent leaks and inconsistent behavior.
- Computed-driven template updates: Avoid direct store access in templates by exposing reactive computed properties for clean, predictable rendering.
Use case: You have an authentication flow where multiple components (login dialog and chat view) depend on the current session, and you need consistent updates without duplicated API calls.
Quick Start
Use the vue skill to design a centralized store-based authentication flow and wire components to it with computed properties.