Skip to content

react-query-firebase / useGetValue

Function: useGetValue() ​

ts
function useGetValue(key): Value | null;

Defined in: src/web/remoteConfig/useGetValue.ts:11

Custom hook to retrieve a value associated with a specified key from remote configuration. Utilizes memoization to optimize performance by recalculating the result only if dependencies change.

Parameters ​

key ​

string

The key for which the corresponding value is to be fetched from the remote configuration.

Returns ​

Value | null

The value associated with the specified key if available, otherwise null.

Released under the MIT License.