react-query-firebase / remoteConfig / useFetchAndActivate
Function: useFetchAndActivate()
ts
function useFetchAndActivate(): object
Defined in: src/remoteConfig/useFetchAndActivate.ts:12
Custom hook to fetch and activate remote configuration settings. Initializes remote configuration, fetches, activates it, and tracks the fetch status.
Returns
object
An object containing:
- {Function} fetchAndActivate - Callback function to fetch and activate remote configuration.
- {Boolean} isFetched - Boolean representing whether the fetch-and-activate process completed.
fetchAndActivate()
ts
fetchAndActivate: () => Promise<void> = fetchAndActivateCallback;
Returns
Promise
<void
>
isFetched
ts
isFetched: boolean;