MCPcopy Create free account
hub / github.com/massCodeIO/massCode / getActiveSpaceId

Function getActiveSpaceId

src/renderer/spaceDefinitions.ts:111–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111export function getActiveSpaceId(): SpaceId | null {
112 const routeName = router.currentRoute.value.name
113 const space = getSpaceDefinitions().find(s => s.isActive(routeName))
114 return space?.id ?? null
115}

Callers 6

onCopyFunction · 0.90
refreshAfterStorageSyncFunction · 0.90

Calls 1

getSpaceDefinitionsFunction · 0.85

Tested by

no test coverage detected