Merge pull request #279 from emrysal/bugfix/useEffect-fires-twice
Updated useEffect so it only fires once (added [])pull/131/head^2
commit
8bf556c742
|
@ -55,9 +55,9 @@ export default function Type(props) {
|
||||||
setIs24h(!!localStorage.getItem('timeOption.is24hClock'));
|
setIs24h(!!localStorage.getItem('timeOption.is24hClock'));
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
telemetry.withJitsu((jitsu) => jitsu.track(telemetryEventTypes.pageView, collectPageParameters()))
|
telemetry.withJitsu((jitsu) => jitsu.track(telemetryEventTypes.pageView, collectPageParameters()))
|
||||||
});
|
}, []);
|
||||||
|
|
||||||
// Handle date change and timezone change
|
// Handle date change and timezone change
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue