modern-planet-89819
03/19/2026, 6:56 AMtrackingCallback while obtaining the experiment value (for preparing data before showing on the UI).
My idea is the useFeatureValue hook will accept the defer option, and return the track function that will invoke the deferred tracking call tied to the hook (similar to gb.fireDeferredTrackingCalls()).
Example:
const [itemsPerRow, track] = useFeatureValue("items-per-row", 3, {
deferTrackingCallback: true
});
useInViewport(() => {
track(); // evoke trackingCallback defined in GB instance
})
const shouldShowSidebar = itemsPerRow <= 3;
Could you consider supporting this? 🙇♂️