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

Function JsonTreeViewProvider

app/hooks/useJsonTree.tsx:36–47  ·  view source on GitHub ↗
({
  children,
  ...options
}: { children: ReactNode } & JsonTreeOptions)

Source from the content-addressed store, hash-verified

34);
35
36export function JsonTreeViewProvider({
37 children,
38 ...options
39}: { children: ReactNode } & JsonTreeOptions) {
40 const instance = useJsonTree(options);
41
42 return (
43 <JsonTreeViewContext.Provider value={instance}>
44 {children}
45 </JsonTreeViewContext.Provider>
46 );
47}
48
49export function useJsonTree(options: JsonTreeOptions): UseJsonTreeInstance {
50 const parentRef = useRef<HTMLDivElement>(null);

Callers

nothing calls this directly

Calls 1

useJsonTreeFunction · 0.85

Tested by

no test coverage detected