State Cache Scaffold
Scenario
This example demonstrates state caching with Pinia persistence, KeepAlive, and tab pinning.
- Route:
/examples/state-cache - View:
src/views/examples/scaffold/state-cache/index.vue
Core Capabilities
- Persist form inputs with
demoStateCachestore - Cache local panel states with
keep-alive - Pin current tab with
tabsstore - Reset and restore flows
Implementation Notes
- Separate persistent state from transient UI state.
- Add TTL and schema version for cached data.
- Use
keepAliveselectively to control memory growth.
