@politico/interactive-style
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -129,9 +129,11 @@ import React, { useEffect } from 'react'; | ||
useEffect(function () { | ||
if (window.UTAG_SCRIPTS_LOADED === true) { | ||
if (!props['no-utag'] && window.UTAG_SCRIPTS_LOADED === true) { | ||
trackView(props.utag.pageName); | ||
} | ||
}, [props.utag.pageName, trackView]); | ||
}, [props.utag.pageName, trackView, props['no-utag']]); | ||
useEffect(function () { | ||
initUtag(props.utag); | ||
}, [props.utag]); | ||
if (!props['no-utag']) { | ||
initUtag(props.utag); | ||
} | ||
}, [props.utag, props['no-utag']]); | ||
return React.createElement(Helmet, null, !props['no-html'] && React.createElement("html", { | ||
@@ -138,0 +140,0 @@ lang: "en", |
{ | ||
"name": "@politico/interactive-style", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
@@ -10,10 +10,12 @@ import React, { useEffect } from 'react'; | ||
useEffect(() => { | ||
if (window.UTAG_SCRIPTS_LOADED === true) { | ||
if (!props['no-utag'] && window.UTAG_SCRIPTS_LOADED === true) { | ||
trackView(props.utag.pageName); | ||
} | ||
}, [props.utag.pageName, trackView]); | ||
}, [props.utag.pageName, trackView, props['no-utag']]); | ||
useEffect(() => { | ||
initUtag(props.utag); | ||
}, [props.utag]); | ||
if (!props['no-utag']) { | ||
initUtag(props.utag); | ||
} | ||
}, [props.utag, props['no-utag']]); | ||
@@ -20,0 +22,0 @@ return ( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
890646
23759