Hiya, I'd just like to check how something works p...
# ask-questions
b
Hiya, I'd just like to check how something works please, so I can answer questions within my team? I have two features with associated experiments set up in GrowthBook. Below is the data which the GrowthBook platform supplies via the sdk network query. This provides information about features, but not experiments. My web app uses the useFeatureIsOn hook, and the GrowthBook DevTools shows that the experiments are active. What code determines that? I'm not seeing any other network call to the GrowthBook platform. Is it the front end code (via useFeatureIsOn) that decides whether an experiment is active? How does it know about the experiments? Thank you!
{
"status": 200,
"features": {
"feature-hoverable-nav": {
"defaultValue": false,
"rules": [
{
"coverage": 1,
"hashAttribute": "id",
"namespace": [
"categories",
0,
0.5
],
"seed": "feature-hoverable-nav",
"hashVersion": 2,
"variations": [
false,
true
],
"weights": [
0.5,
0.5
],
"key": "feature-hoverable-nav",
"meta": [
{
"key": "0"
},
{
"key": "1"
}
],
"phase": "1"
}
]
},
"feature-support-resources-a-a": {
"defaultValue": false,
"rules": [
{
"coverage": 1,
"hashAttribute": "id",
"namespace": [
"categories",
0.5,
1
],
"seed": "feature-a-a",
"hashVersion": 2,
"variations": [
false,
true
],
"weights": [
0.5,
0.5
],
"key": "feature-a-a",
"meta": [
{
"key": "0"
},
{
"key": "1"
}
],
"phase": "1"
}
]
}
},
"dateUpdated": "2023-10-06T16:56:35.265Z"
}
f
Hi Shelagh - that is an experiment - you can tell becasue it has ‘variations’ in the payload
b
Thanks! So experiments now appear under features?
f
There are two sides to every experiment - how you assign it, and how you analyse it
in GrowthBook, we link the two
b
Cool, thanks. So it's the SDK which evaluates whether this particular user is in the experiment, based on the features and experiments defined above, using the seed, hash algorithm, id and so on.
f
yes