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

Function modeFromHash

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

Source from the content-addressed store, hash-verified

173}
174
175const modeFromHash = (): Mode => {
176 const hash = globalThis.location?.hash ?? "";
177 return hash.startsWith("#reworked") || hash.startsWith("#next") ? "next" : "current";
178};
179
180export function App() {
181 const [mode, setMode] = useState<Mode>(modeFromHash);

Callers 1

onHashChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected