MCPcopy
hub / github.com/facebook/react / localStorageGetItem

Function localStorageGetItem

packages/react-devtools-shared/src/storage.js:10–16  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

8 */
9
10export function localStorageGetItem(key: string): any {
11 try {
12 return localStorage.getItem(key);
13 } catch (error) {
14 return null;
15 }
16}
17
18export function localStorageRemoveItem(key: string): void {
19 try {

Callers 8

getSavedComponentFiltersFunction · 0.90
getOpenInEditorURLFunction · 0.90
getAlwaysOpenInEditorFunction · 0.90
constructorMethod · 0.90
useLocalStorageFunction · 0.90
ComponentsFunction · 0.90
createBridgeFunction · 0.90
getProfilingFlagsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected