mysterious-hospital-86275
12/11/2025, 6:40 AMfresh-football-47124
fresh-football-47124
mysterious-hospital-86275
12/11/2025, 10:02 AMfresh-football-47124
streaming: true,
?mysterious-hospital-86275
12/11/2025, 10:17 AMvar _growthBookClient = null;
function initialiseGrowthBook(attributes, env) {
console.log(attributes, "attributes");
const growthbook = new GrowthBook({
apiHost: env.GROWTHBOOK_SDK_CLIENT_PATH,
clientKey: env.GROWTHBOOK_SDK_KEY,
enableDevMode: true,
disableCache: true,
subscribeToChanges: true,
trackingCallback: /* @__PURE__ */ __name((experiment, result) => {
console.log("Viewed Experiment Growthbook fetchFeatureFlagValue", {
experimentId: experiment.key,
variationId: result.key
});
}, "trackingCallback")
});
configureCache({
// Set to `true` to completely disable both in-memory and persistent caching
disableCache: false
});
if (growthbook.init) {
growthbook.init({ timeout: 2e3 });
}
if (growthbook.setAttributes) {
growthbook.setAttributes(attributes);
}
_growthBookClient = growthbook;
}
__name(initialiseGrowthBook, "initialiseGrowthBook");
async function fetchFeatureFlagValue(featureFlag, featureFlagFallback) {
if (!_growthBookClient) {
throw new Error("GrowthBook client not initialized");
}
await _growthBookClient.loadFeatures();
let value = featureFlagFallback;
value = _growthBookClient.getFeatureValue(featureFlag, featureFlagFallback);
console.log(
"fetchFeatureFlagValue Feature is not enabled!",
featureFlag,
featureFlagFallback,
value,
// _growthBookClient,
_growthBookClient.getFeatureValue(featureFlag, featureFlagFallback),
_growthBookClient.evalFeature(featureFlag)
// _growthBookClient,
);
return value;
}mysterious-hospital-86275
12/11/2025, 10:17 AMfresh-football-47124
fresh-football-47124
fresh-football-47124
subscribeToChanges: true,
you can try turning that off to see if it helpsmysterious-hospital-86275
12/11/2025, 10:40 AMfresh-football-47124
mysterious-hospital-86275
12/11/2025, 10:44 AMmysterious-hospital-86275
12/11/2025, 10:44 AMmysterious-hospital-86275
12/13/2025, 11:21 AMstrong-mouse-55694
12/15/2025, 8:14 PMsubscribeToChanges property is deprecated, so it should be removed.
• if you're looking to turn streaming off, you can disable it with { streaming: false }