MCPcopy
hub / github.com/smapiot/piral / push

Function push

src/framework/piral-core/src/defaults/DefaultRouteSwitch_wouter.tsx:8–10  ·  view source on GitHub ↗
(path: string, state: any)

Source from the content-addressed store, hash-verified

6function getHistory(navigate: any): any {
7 return {
8 push(path: string, state: any) {
9 navigate(path, { replace: false, state });
10 },
11 replace(path: string, state: any) {
12 navigate(path, { replace: true, state });
13 },

Callers

nothing calls this directly

Calls 1

navigateFunction · 0.85

Tested by

no test coverage detected