curved-accountant-6477
03/18/2024, 1:38 PMgetFeatureValue
but avoid any analytics calls. Is there a workaround to do that —without patching the sdk ourselves—, would appreciate any pointers. Especially when the value returned hasn’t changed. The main motivation is to reduce high-number of events from a billing/scale perspective.future-teacher-7046
getFeatureValue
a bunch of times for a feature should only be firing the callback once.curved-accountant-6477
03/18/2024, 1:44 PMcurved-accountant-6477
03/18/2024, 1:45 PM@growthbook/growthbook-react@0.20.0
curved-accountant-6477
03/18/2024, 1:46 PMfuture-teacher-7046
if (previouslyFired.includes(`${experiment.key}::${result.key}`)) return;
previouslyFired.push(`${experiment.key}::${result.key}`);
// Fire your analytics call here
curved-accountant-6477
03/18/2024, 1:48 PMfuture-teacher-7046
curved-accountant-6477
03/18/2024, 6:15 PM