Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tech] Active le mode strict pour React #1862

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

claire2212
Copy link
Collaborator

@claire2212 claire2212 commented Nov 15, 2024

Activation du strict mode + ajout de timeouts sur les jobs + annulation des workflows déjà en cours au push

Related Pull Requests & Issues


  • Tests E2E (Cypress)

@claire2212 claire2212 added the tech. enhancement technical enhancement label Nov 15, 2024
@claire2212 claire2212 self-assigned this Nov 15, 2024
Copy link

sonarcloud bot commented Nov 15, 2024

@@ -14,6 +14,10 @@ on:
schedule:
- cron: "38 11 */3 * *"

concurrency:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je voulais ajouter ça côté Fish aussi ^^

@@ -55,6 +59,7 @@ jobs:
fi
echo $VERSION
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
timeout-minutes: 30
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne connaissais pas cette prop, bonne idée !

zoom: 6
})
})
initialMap.setTarget(mapElement.current)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bonne idée de le sortir. Je me demande juste si on n'a pas de double-listening comme il y a un "double first render" en mode strict.

= n"y a-t-il pas besoin de mettre une ref isFirstRenderRef ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍. Il me semble que mettre les dépendances vides sur le useEffect va se déclencher qu'une seule fois au premier render.

Copy link
Collaborator

@maximeperraultdev maximeperraultdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

zoom: 6
})
})
initialMap.setTarget(mapElement.current)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍. Il me semble que mettre les dépendances vides sur le useEffect va se déclencher qu'une seule fois au premier render.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech. enhancement technical enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tech – Activer React strict mode et corriger les side-effects éventuels révélés en dev
3 participants