MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / useAdapterOptional

Function useAdapterOptional

webapp/_webapp/src/adapters/context.tsx:37–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 * Hook to safely access the document adapter (returns null if not available)
36 */
37export function useAdapterOptional(): DocumentAdapter | null {
38 return useContext(AdapterContext);
39}

Callers 3

TextPatchesFunction · 0.90
AccountSettingsFunction · 0.90
LoginFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected