Dynamic

This demo is easiest to understand if you open its source code in a parallel tab.

Source code

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

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 }