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

Function getConfigValue

examples/solid/todo/src/components/TodoApp.tsx:19–26  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

17
18 // Define a type-safe helper function to get config values
19 const getConfigValue = (key: string): string => {
20 for (const config of props.configData) {
21 if (config.key === key) {
22 return config.value
23 }
24 }
25 return ``
26 }
27
28 // Define a helper function to update config values
29 const setConfigValue = (key: string, value: string): void => {

Callers 1

TodoAppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected