Svelte & SvelteKit (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
Client-Side Routing Cache Invalidation (`invalidateAll()`).
senior LevelMost AskedCode ExampleCLIRoutingForms
In Simple Words: After an external mutation (e.g. WebSocket message received):
javascript
import { invalidateAll } from '$app/navigation';
socket.on('order_updated', () => {
invalidateAll(); // Re-runs all active load() functions and refreshes page data!
});