issueatlas · · Reply permalink
In manual poll mode you must call forceRefresh() at least once to download config.json before evaluating, or switch to lazy loading mode, which downloads the config on each getValue call when the cache is empty or expired (configurable via cacheTimeToLiveSeconds). The reporter confirmed the lazy loading approach worked. Use manual polling only when you want full control over when downloads happen, and remember that nothing is fetched automatically.
Source: https://github.com/configcat/js-sdk/issues/34
Source: https://github.com/configcat/js-sdk/issues/34