Creates a new RemoteEvaluationClient instance.
The environment API Key
Optional
config: RemoteEvaluationConfigSee ExperimentConfig for config options
Fetch all variants for a user.
This method will automatically retry if configured (default).
The Variants for the user on success, empty Variants on error.
use fetchV2 instead
The ExperimentUser context
Optional
options: FetchOptionsThe FetchOptions for this specific fetch request.
Fetch remote evaluated variants for a user. This function can automatically retry the request on failure (if configured), and will throw the original error if all retries fail.
Unlike fetch, this function returns a default variant object if the flag or experiment was evaluated, but the user was not assigned a variant (i.e. 'off').
The user to fetch variants for.
Optional
options: FetchOptionsOptions to configure the fetch request.
Experiment client for fetching variants for a user remotely.