Description
Feature flags are a trick to prevent certain content from being shown to the user.
?
Reach for when
- You have a feature you want to "protect" and not always show. Based on failure or subscriptions.
- You want to test an old vs new version of some code.
Pseudocode
App init -> /api/flags
Localstorage cache flags
if Flag on:
Log -> what rendered, who saw, who touched
Kill switch -> SSE push