MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / useJsonTreeViewContext

Function useJsonTreeViewContext

app/hooks/useJsonTree.tsx:71–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71export function useJsonTreeViewContext(): JsonTreeViewType {
72 const context = useContext(JsonTreeViewContext);
73
74 invariant(
75 context,
76 "useJsonTreeViewContext must be used within a JsonTreeViewContext.Provider"
77 );
78
79 return context;
80}
81
82export type JsonTreeViewNode = {
83 id: string;

Callers 1

JsonTreeViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected