Skip to content

v4.32.0 - Adds FetchMode

Compare
Choose a tag to compare
@daniel-statsig daniel-statsig released this 31 Mar 19:05
· 312 commits to main since this release
95b6d19

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.