MCPcopy Create free account
hub / github.com/TanStack/devtools / setStorageItem

Function setStorageItem

packages/devtools/src/utils/storage.ts:2–8  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

1export const getStorageItem = (key: string) => {
2 return localStorage.getItem(key)
3}
4export const setStorageItem = (key: string, value: string) => {
5 try {
6 localStorage.setItem(key, value)
7 } catch (_e) {
8 return
9 }
10}
11

Callers 3

storage.test.tsFile · 0.90
getStateFromLocalStorageFunction · 0.90
DevtoolsProviderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected