Loading...
if (user.email.endsWith('@acme.com')) {
showNewCheckout();
}if (flags.isEnabled('new-checkout', { userId: user.id })) {
showNewCheckout();
}A named flag with a default can be switched or rolled out gradually without editing and deploying code.
A config setting is a long-term option. A feature flag is usually temporary and is removed once the feature is fully released.
Barely, if flags are evaluated locally from a cached rule set rather than with a network call each time.
A flag that turns off a risky feature instantly in production without a deploy, used when something goes wrong.