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.

Guides

Example host

Developer guides


Pattern exercised

The demo supplies all route meaning, rendering, and state policy. The navigator only owns its scoped history.

push

Opening a guide or topic creates a new history entry.

replace

Changing a guide tab updates the current route without adding history.

updateCurrentState

Each entry keeps its own note and restores it after Back.

subscribe

React observes stable snapshots through useSyncExternalStore.