MCPcopy
hub / github.com/remix-run/react-router / push

Function push

packages/react-router/lib/dom/server.tsx:267–273  ·  view source on GitHub ↗
(to: To)

Source from the content-addressed store, hash-verified

265 createHref,
266 encodeLocation,
267 push(to: To) {
268 throw new Error(
269 `You cannot use navigator.push() on the server because it is a stateless ` +
270 `environment. This error was probably triggered when you did a ` +
271 `\`navigate(${JSON.stringify(to)})\` somewhere in your app.`,
272 );
273 },
274 replace(to: To) {
275 throw new Error(
276 `You cannot use navigator.replace() on the server because it is a stateless ` +

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…