The "Uninitialized" assignments in Statsig could be due to the initTimeoutMs
parameter in the Provider. This parameter determines how long the Statsig client waits for the initial network request to respond before proceeding. If this timeout is too short, it could lead to an "Uninitialized" status if the initialization network request doesn't complete within the specified time.
In some cases, a 400ms timeout might be too short, causing the initialization to not complete in time, especially if network conditions are not optimal. It is recommended to consider increasing this timeout value to allow more time for initialization.
However, for Server Side Rendering (SSR) pages using the StatsigSynchronousProvider, there is no concept of initTimeoutMs
. Therefore, the initialization happens on the server and there should be minimal uninitialized cases. If you are seeing a notable number of uninitialized cases for an experiment on an SSR page, it could be due to other factors not related to the initTimeoutMs
parameter.
Please note that the initialization process involves a network request, and depending on the network condition and location of the users, a short timeout like 400ms might not be sufficient for many users.