Merge pull request #279 from emrysal/bugfix/useEffect-fires-twice

Updated useEffect so it only fires once (added [])
pull/131/head^2
Peer_Rich 2021-06-18 11:35:41 +01:00 committed by GitHub
commit 8bf556c742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ export default function Type(props) {
useEffect(() => {
telemetry.withJitsu((jitsu) => jitsu.track(telemetryEventTypes.pageView, collectPageParameters()))
});
}, []);
// Handle date change and timezone change
useEffect(() => {