MCPcopy 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

167export type RealtimeContext = InstanceType<ReturnType<typeof RealtimeContext>>;
168
169export function useRealtimeContext() {
170 const ctx = new (RealtimeContext())();
171
172 onBeforeUnmount(() => ctx.destroy());
173
174 return ctx;
175}

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected