This demo shows how the @happykit/flags
client behaves when the passed in user attributes or traits change.
Simulate changing user attributes or traits using the buttons below. Explore how the loading state changes throughout the lifecycle.
Use the buttons below to modify the passed in values
No userPasses no user
GeorgePasses a user with the key george
LindaPasses a user with the key linda
No traitsPasses no traits
Team Member (yes)Passes teamMember: true as a trait
Team Member (no)Passes teamMember: false as a trait
Generated Input
useFlags({ "user": null, "traits": null })
Value returned from hook
Render #1 (Current render){ flags: null, data: null, error: null, fetching: false, settled: false, visitorKey: null }