useAllConfigs() returns every configuration value as a Record<string, string>. The first render
shows the cached values or the defaults. The hook then fetches the current values and re-renders
when any value changes. Read Remote configuration.
Signature
Options
Result
Cache-first behavior
- On the first render, the hook reads
client.getAllConfigs(). The result comes from the cache and fromdefaultConfigurations. There is no loading state. - After mount, the hook calls
client.fetchConfigwith the options and replacesconfigswith the response. - The hook subscribes to the configuration change listener of the client. Any change to any key
replaces
configsand re-renders the component. - When the fetch fails,
errorholds the failure andconfigskeeps the cached or default values.
forceRefresh, immediateKeys, or properties change.
useAllConfigs or useConfig
Read useConfig.