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

Function usePreferences

app/components/PreferencesProvider.tsx:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52export function usePreferences() {
53 const context = useContext(PreferencesContext);
54 if (context === undefined) {
55 throw new Error('usePreferences must be used within a PreferencesProvider');
56 }
57 return context;
58}

Callers 4

JsonEditorFunction · 0.90
IndentPreferenceFunction · 0.90
JsonPreviewFunction · 0.90
JsonSchemaViewerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected