Try it: Click the pencil icon to edit this employee's name. After saving, notice how the breadcrumb above updates immediately! This works because:
updateEmployee()router.invalidate()crumb valueuseMatches() in BreadcrumbNav picks up the changeconst handleSave = async () => {
await updateEmployee({
id: employee.id,
name: editName,
surname: editSurname,
});
// This is the key line!
// It re-runs all loaders, updating breadcrumbs
await router.invalidate();
};