We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff684eb commit b50ef20Copy full SHA for b50ef20
packages/browser/src/integrations/featureFlags/growthbook/integration.ts
@@ -37,6 +37,10 @@ export const growthbookIntegration = defineIntegration(({ growthbookClass }: { g
37
const proto = growthbookClass.prototype as GrowthBook;
38
fill(proto, 'isOn', _wrapBooleanReturningMethod);
39
fill(proto, 'getFeatureValue', _wrapBooleanReturningMethod);
40
+ // Also capture evalFeature when present. Not all versions have it, so guard.
41
+ if (typeof (proto as unknown as Record<string, unknown>).evalFeature === 'function') {
42
+ fill(proto as any, 'evalFeature', _wrapBooleanReturningMethod as any);
43
+ }
44
},
45
46
processEvent(event: Event, _hint: EventHint, _client: Client): Event {
0 commit comments