@devboldly/react-use-google-analytics-embed-api
Advanced tools
Comparing version 0.0.36 to 0.0.37
@@ -27,3 +27,5 @@ "use strict"; | ||
React.useEffect(function () { | ||
var randNum = Math.random(); | ||
var authorizedListener = function (isAuthorized) { | ||
console.log('Calling setAuthorized', randNum); | ||
setAuthorized(isAuthorized); | ||
@@ -33,2 +35,3 @@ }; | ||
return function () { | ||
console.log('Removing setAuthorized listener...', randNum); | ||
useAnalyticsApi_1.apiStateEmitter.off('authorized', authorizedListener); | ||
@@ -35,0 +38,0 @@ }; |
{ | ||
"name": "@devboldly/react-use-google-analytics-embed-api", | ||
"version": "0.0.36", | ||
"version": "0.0.37", | ||
"author": "Dev Boldly <devboldly@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "React hook for loading the Google Analytics Embed API.", |
91925
2079