v4.32.0 - Adds FetchMode
Adds StatsigOptions.fetchMode
. Setting this option will change the behavior of UpdateUser calls.
The supported FetchModes are as follows:
network-only
- This is the default behavior. The SDK will always fetch the latest feature gate and experiment values from the Statsig servers when Statsig.updateUser is called.
cache-or-network
- When set to this mode, the SDK will first check if a cached value exists for the user and was cached during this session (After Statsig.initialize). If no valid cache value is found, a network request will be made to fetch the latest values.