MCPcopy
hub / github.com/graphql/graphiql / get

Method get

packages/graphiql-toolkit/src/storage/base.ts:93–107  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

91 }
92
93 get(name: string): string | null {
94 if (!this.storage) {
95 return null;
96 }
97
98 const key = `${STORAGE_NAMESPACE}:${name}`;
99 const value = this.storage.getItem(key);
100 // Clean up any inadvertently saved null/undefined values.
101 if (value === 'null' || value === 'undefined') {
102 this.storage.removeItem(key);
103 return null;
104 }
105
106 return value || null;
107 }
108
109 set(
110 name: string,

Callers 15

fetchAllMethod · 0.45
uniqueByFunction · 0.45
getSchemaForFileMethod · 0.45
useThemeFunction · 0.45
PluginContextProviderFunction · 0.45
mergeIncrementalResultFunction · 0.45
useDragResizeFunction · 0.45
showFunction · 0.45
getDefaultTabStateFunction · 0.45
clearHeadersFromTabsFunction · 0.45
EditorContextProviderFunction · 0.45
ImagePreviewFunction · 0.45

Calls

no outgoing calls

Tested by 1

initMethod · 0.36