MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stepFromHash

Function stepFromHash

packages/onboarding-demo/src/app.tsx:32–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30};
31
32const stepFromHash = (): StepId => {
33 const hash = globalThis.location?.hash.replace(/^#/, "") ?? "";
34 return flowSteps.some((step) => step.id === hash) ? (hash as StepId) : "integrations-empty";
35};
36
37function CurrentFlowApp() {
38 // Each screen is addressable as `#<step-id>`, so a specific screen can be

Callers 1

onHashChangeFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected