MCPcopy
hub / github.com/portainer/portainer / keyBuilder

Function keyBuilder

app/react/hooks/useLocalStorage.ts:5–7  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

3const localStoragePrefix = 'portainer';
4
5export function keyBuilder(key: string) {
6 return `${localStoragePrefix}.${key}`;
7}
8
9export function useLocalStorage<T>(
10 key: string,

Callers 8

insights-store.tsFile · 0.90
createPersistedStoreFunction · 0.90
filter-store.tsFile · 0.90
useUIState.tsxFile · 0.90
getFunction · 0.70
setFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected