Memory Navigator
A scoped, typed back stack for embedded experiences that need route-like navigation without taking over the browser URL.
Embedded navigator
Open a guide, change its tab, and continue into a topic. Add a note on any screen; Back restores the note attached to that history entry.
Example host
Developer guides
Pattern exercised
The demo supplies all route meaning, rendering, and state policy. The navigator only owns its scoped history.
pushOpening a guide or topic creates a new history entry.
replaceChanging a guide tab updates the current route without adding history.
updateCurrentStateEach entry keeps its own note and restores it after Back.
subscribeReact observes stable snapshots through useSyncExternalStore.