MCPcopy Create free account
hub / github.com/ampproject/amphtml / replace

Method replace

src/service/history-impl.js:330–330  ·  view source on GitHub ↗

* Replaces the current state, optionally specifying updates to the state * object to be associated with the replacement. * Returns a promise that yields the new state. * @param {!HistoryStateUpdateDef=} opt_stateUpdate * @return {!Promise<!HistoryStateDef>}

(opt_stateUpdate)

Source from the content-addressed store, hash-verified

328 * @return {!Promise<!HistoryStateDef>}
329 */
330 replace(opt_stateUpdate) {}
331
332 /**
333 * Retrieves the current state, containing the current fragment, title,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected