react-amplitude-hooks
Advanced tools
Comparing version 0.9.14 to 0.10.0
@@ -7,6 +7,6 @@ "use strict"; | ||
exports.LogOnChange = function (props) { | ||
var _a = Amplitude_1.useAmplitude(undefined, props.instanceName), logEvent = _a.logEvent, amplitudeInstance = _a.amplitudeInstance; | ||
var logEvent = Amplitude_1.useAmplitude(undefined, props.instanceName).logEvent; | ||
React.useEffect(function () { | ||
logEvent(props.eventType, props.eventProperties); | ||
}, [props.eventType, props.eventProperties, props.value, amplitudeInstance]); | ||
}, [props.value]); | ||
return props.children || null; | ||
@@ -18,3 +18,3 @@ }; | ||
instanceName: PropTypes.string, | ||
value: PropTypes.any | ||
value: PropTypes.any, | ||
}; |
@@ -7,6 +7,6 @@ "use strict"; | ||
exports.LogOnMount = function (props) { | ||
var _a = Amplitude_1.useAmplitude(undefined, props.instanceName), logEvent = _a.logEvent, amplitudeInstance = _a.amplitudeInstance; | ||
var logEvent = Amplitude_1.useAmplitude(undefined, props.instanceName).logEvent; | ||
React.useEffect(function () { | ||
logEvent(props.eventType, props.eventProperties); | ||
}, [props.eventType, props.eventProperties, amplitudeInstance]); | ||
}, []); | ||
return props.children || null; | ||
@@ -17,3 +17,3 @@ }; | ||
eventType: PropTypes.string.isRequired, | ||
instanceName: PropTypes.string | ||
instanceName: PropTypes.string, | ||
}; |
@@ -54,3 +54,3 @@ { | ||
"types": "dist/index.d.ts", | ||
"version": "0.9.14" | ||
"version": "0.10.0" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
28364