Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepNotesApp/DeepNotes
/ useRealtimeContext
Function
useRealtimeContext
apps/client/src/code/realtime/context.ts:169–175 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
167
export
type
RealtimeContext = InstanceType<ReturnType<typeof RealtimeContext>>;
168
169
export
function
useRealtimeContext() {
170
const
ctx =
new
(RealtimeContext())();
171
172
onBeforeUnmount(() => ctx.destroy());
173
174
return
ctx;
175
}
Callers
nothing calls this directly
Calls
1
destroy
Method · 0.45
Tested by
no test coverage detected