MCPcopy Create free account
hub / github.com/Roy3838/Observer / handleStreamUpdate

Function handleStreamUpdate

app/src/components/SensorBarStatus.tsx:18–20  ·  view source on GitHub ↗
(newState: StreamState)

Source from the content-addressed store, hash-verified

16
17 useEffect(() => {
18 const handleStreamUpdate = (newState: StreamState) => {
19 setStreams(newState);
20 };
21 StreamManager.addListener(handleStreamUpdate);
22 return () => {
23 StreamManager.removeListener(handleStreamUpdate);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected