MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / useEdgeMotionPreference

Function useEdgeMotionPreference

graph-ui/src/graph/edge-motion.ts:37–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 return useSyncExternalStore(subscribe, motionSnapshot, () => false) && active;
36}
37export function useEdgeMotionPreference(): { enabled: boolean; reduced: boolean; setEnabled: typeof setEdgeMotionPreference } {
38 const enabled = useSyncExternalStore(subscribe, edgeMotionPreference, () => false);
39 const reduced = useSyncExternalStore(subscribe, reducedMotion, () => true);
40 return { enabled, reduced, setEnabled: setEdgeMotionPreference };
41}

Callers 2

BrowserConfigFunction · 0.90
GraphEdgeControlsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected