@atlaskit/analytics-next
Advanced tools
Comparing version 9.2.2 to 9.2.3
# @atlaskit/analytics-next | ||
## 9.2.3 | ||
### Patch Changes | ||
- [#87314](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87314) [`36ccb66917fb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/36ccb66917fb) - Fix a bug in ModernAnalyticsContext when it's bit late to update data in new React context when mounting a component | ||
## 9.2.2 | ||
@@ -4,0 +10,0 @@ |
@@ -10,6 +10,4 @@ "use strict"; | ||
var ref = (0, _react.useRef)(value); | ||
(0, _react.useEffect)(function () { | ||
ref.current = value; | ||
}, [value]); | ||
ref.current = value; | ||
return ref; | ||
}; |
@@ -1,8 +0,6 @@ | ||
import { useEffect, useRef } from 'react'; | ||
import { useRef } from 'react'; | ||
export const useTrackedRef = value => { | ||
const ref = useRef(value); | ||
useEffect(() => { | ||
ref.current = value; | ||
}, [value]); | ||
ref.current = value; | ||
return ref; | ||
}; |
@@ -1,8 +0,6 @@ | ||
import { useEffect, useRef } from 'react'; | ||
import { useRef } from 'react'; | ||
export var useTrackedRef = function useTrackedRef(value) { | ||
var ref = useRef(value); | ||
useEffect(function () { | ||
ref.current = value; | ||
}, [value]); | ||
ref.current = value; | ||
return ref; | ||
}; |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "9.2.2", | ||
"version": "9.2.3", | ||
"description": "React components, HOCs and hooks to assist with tracking user activity with React components", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
232553
3649