NavigationSnapshot

data class NavigationSnapshot(val moduleKey: String, val backStack: List<NavigationEntrySnapshot>, val currentPath: String?, val graphChain: List<String>, val isCurrentModal: Boolean, val isBootstrapping: Boolean, val isEvaluating: Boolean, val modalContextPaths: List<String>)(source)

The navigation position at a point in a session, read out of a captured state tree.

The DevTools inspects arbitrary stores and does not depend on reaktiv-navigation, so this is parsed from JSON rather than deserialized into the real types. Every field is optional in practice: a store with no navigation module produces no snapshot at all, and one captured by an older release may be missing newer fields.

Constructors

Link copied to clipboard
constructor(moduleKey: String, backStack: List<NavigationEntrySnapshot>, currentPath: String?, graphChain: List<String>, isCurrentModal: Boolean, isBootstrapping: Boolean, isEvaluating: Boolean, modalContextPaths: List<String>)

Properties

Link copied to clipboard

Entries from the bottom of the stack to the top.

Link copied to clipboard

The path of the entry that is currently showing.

Link copied to clipboard

Graph IDs enclosing the current entry, outermost first.

Link copied to clipboard

Whether navigation had not finished resolving its start destination.

Link copied to clipboard

Whether the current entry is a modal.

Link copied to clipboard

Whether a guard or entry lambda was being evaluated.

Link copied to clipboard

Paths that had an active modal context.

Link copied to clipboard

The state-tree key the navigation module was found under.