MCPcopy Create free account
hub / github.com/TanStack/db / getConfigValue

Function getConfigValue

examples/react/todo/src/components/TodoApp.tsx:39–46  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

37
38 // Define a type-safe helper function to get config values
39 const getConfigValue = (key: string): string | undefined => {
40 for (const config of configData) {
41 if (config.key === key) {
42 return config.value
43 }
44 }
45 return undefined
46 }
47
48 // Define a helper function to update config values
49 const setConfigValue = (key: string, value: string): void => {

Callers 1

TodoAppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected