react-amplitude-hooks
Advanced tools
Comparing version 0.10.1 to 0.10.3
@@ -74,3 +74,7 @@ "use strict"; | ||
} | ||
return (React.createElement(AmplitudeProvider_1.AmplitudeContext.Provider, { value: { eventProperties: __assign(__assign({}, eventProperties), (props.eventProperties || {})), amplitudeInstance: amplitudeInstance } }, typeof props.children === "function" ? props.children({ logEvent: logEvent, instrument: instrument }) : props.children || null)); | ||
var value = React.useMemo(function () { return ({ | ||
eventProperties: __assign(__assign({}, eventProperties), (props.eventProperties || {})), | ||
amplitudeInstance: amplitudeInstance, | ||
}); }, [props.eventProperties, amplitudeInstance]); | ||
return (React.createElement(AmplitudeProvider_1.AmplitudeContext.Provider, { value: value }, typeof props.children === "function" ? props.children({ logEvent: logEvent, instrument: instrument }) : props.children || null)); | ||
} | ||
@@ -77,0 +81,0 @@ exports.Amplitude = Amplitude; |
@@ -54,3 +54,3 @@ { | ||
"types": "dist/index.d.ts", | ||
"version": "0.10.1" | ||
"version": "0.10.3" | ||
} |
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
29172
264