Skip to content

Commit

Permalink
fix(animations): Hot fix to avoid rerendering crashes for animation l…
Browse files Browse the repository at this point in the history
…oop (need to investigate later)
  • Loading branch information
MaximeHeckel committed Aug 25, 2020
1 parent b053c30 commit cd5f419
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/MicroAnimations/PreviewDeploy.tsx
Expand Up @@ -59,11 +59,11 @@ const Label = styled(motion.div)`
const PreviewDeploy = () => {
const [currentKey, setCurrentKey] = React.useState(0);

React.useEffect(() => {
setInterval(() => {
setCurrentKey(currentKey + 1);
}, 13000);
}, [currentKey]);
// React.useEffect(() => {
// setInterval(() => {
// setCurrentKey(currentKey + 1);
// }, 13000);
// }, [currentKey]);

return (
<motion.div
Expand Down Expand Up @@ -268,11 +268,11 @@ const IsometricWrapper = styled(motion.div)`
const DockerBuild = () => {
const [currentKey, setCurrentKey] = React.useState(0);

React.useEffect(() => {
setInterval(() => {
setCurrentKey(currentKey + 1);
}, 8000);
}, [currentKey]);
// React.useEffect(() => {
// setInterval(() => {
// setCurrentKey(currentKey + 1);
// }, 8000);
// }, [currentKey]);

return (
<Wrappwr>
Expand Down

0 comments on commit cd5f419

Please sign in to comment.