Async State Management in Vue Router
summary
Introduces a router plugin that lets pages defineLoader functions that run in navigation guards so fetching is nav-aware, cancellable or redirecting, and collocated with routes; shows two implementations so far (a minimal defineBasicLoader and a feature-rich pina colada integration using Pinia) and demos where the URL waits until required data is ready, duplicates are avoided, back navigation is instant from cache, and lazy loader option plus reload and error-scoping work as advertised.
AI-written summary · about
