diff --git a/src/Experiment.js b/src/Experiment.js index d2009dd7..08124491 100644 --- a/src/Experiment.js +++ b/src/Experiment.js @@ -80,6 +80,7 @@ class Experiment extends React.Component { } componentWillUnmount() { + clearTimeout(this.updateVariantTimeout); typeof window !== "undefined" && window.gtag && window.gtag("event", "optimize.callback", {