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'));
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
telemetry.withJitsu((jitsu) => jitsu.track(telemetryEventTypes.pageView, collectPageParameters()))
|
||||
});
|
||||
useEffect(() => {
|
||||
telemetry.withJitsu((jitsu) => jitsu.track(telemetryEventTypes.pageView, collectPageParameters()))
|
||||
}, []);
|
||||
|
||||
// Handle date change and timezone change
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in New Issue