Readonly
cacheReadonly
fetcherOptional
onChange: ((cache: FlagConfigCache) => Promise<void>)Force a flag config fetch and cache the update with an optional callback which gets called if the flag configs change in any way.
Optional
onChange: ((cache: FlagConfigCache) => Promise<void>)optional callback which will get called if the flag configs in the cache have changed.
Fetch initial flag configurations and start polling for updates.
You must call this function to begin polling for flag config updates. The promise returned by this function is resolved when the initial call to fetch the flag configuration completes.
Calling this function while the poller is already running does nothing.