Provide targeting attributes
Last updated
Last updated
Hypertune is uniquely architected to let you define targeting attributes at the:
root
level
individual flag level
And provide them during:
SDK initialization
local flag evaluation
a mix of both
To provide targeting attributes during SDK initialization, .
On the server, you'll typically provide targeting attributes when locally evaluating the root
flag, passing it the context
argument you defined in your . You'll get back the Root
SDK node which will have type-safe methods to evaluate all your individual flags. In the browser, this is managed by the generated <HypertuneProvider>
component.
You can also provide when evaluating individual flags: