@aperture.io/analytics
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -1500,3 +1500,3 @@ // source/applyMiddleware.ts | ||
}, [contextDispatch, dispatchOverride]); | ||
const mergedEventState = deepMerge(context.eventData, localEventData); | ||
const mergedEventState = options.localDataOnly ? localEventData : deepMerge(context.eventData, localEventData); | ||
const [eventData, setEventData] = useState(mergedEventState); | ||
@@ -1503,0 +1503,0 @@ if (!isEqual_default(eventData, mergedEventState)) |
@@ -7,2 +7,3 @@ import React from 'react'; | ||
dispatchOnMount?: boolean; | ||
localDataOnly?: boolean; | ||
}) => { | ||
@@ -9,0 +10,0 @@ Provider: ({ children }: { |
{ | ||
"private": false, | ||
"name": "@aperture.io/analytics", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Declarative React analytics library", | ||
@@ -6,0 +6,0 @@ "author": "Eldar Shamukhamedov", |
Sorry, the diff of this file is not supported yet
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
229660
1422
1