MCPcopy Index your code
hub / github.com/angular/angular / restoredState

Function restoredState

packages/router/src/statemanager/state_manager.ts:141–143  ·  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

139
140 /** Returns the current state stored by the browser for the current history entry. */
141 restoredState(): RestoredState | null | undefined {
142 return this.location.getState() as RestoredState | null | undefined;
143 }
144
145 /**
146 * 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…