Skip to content

useNavigation

useNavigation(anchor?, options?): NavigationState

The published Experience tree, for building a breadcrumb, a nav menu, or a pager.

Seeded synchronously from client.peekTree() on mount, as useExperience is, so a repeat visit paints its navigation immediately and revalidates behind it. Degrades to a plain loading state when persistence isn’t configured.

string

NavigationOptions = {}

NavigationState