MCPcopy Create free account
hub / github.com/angular/angular / restoredState

Function restoredState

packages/router/src/statemanager/state_manager.ts:142–144  ·  view source on GitHub ↗

Returns the current state stored by the browser for the current history entry.

()

Source from the content-addressed store, hash-verified

140
141 /** Returns the current state stored by the browser for the current history entry. */
142 restoredState(): RestoredState | null | undefined {
143 return this.location.getState() as RestoredState | null | undefined;
144 }
145
146 /**
147 * Registers a listener that is called whenever the current history entry changes by some API

Callers

nothing calls this directly

Calls 1

getStateMethod · 0.45

Tested by

no test coverage detected