-
Notifications
You must be signed in to change notification settings - Fork 24
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
(PC-31778) feat(Bookings): post reaction on tab change or on change screen #6909
base: master
Are you sure you want to change the base?
Conversation
Performance Comparison ReportSignificant Changes To Render Duration
Show details
Meaningless Changes To Render DurationShow entries
Show details
Changes To Render Count
Show details
Added ScenariosThere are no entries Removed ScenariosThere are no entries |
useCallback(() => { | ||
return () => { | ||
if (previousTab === Tab.COMPLETED) { | ||
updateReactions() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai toujours du mal à comprendre comment ceci peut fonctionner juste en changeant d'onglet sans quitter la page 🤔
EDIT : ayé j'ai compris --> "The useFocusEffect is analogous to React's useEffect hook. The only difference is that it only runs if the screen is currently focused."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moi aussi je ne comprend pas trop j'avais laissé le useEffect de base et ensuite j'ai vu que les deux useEffect
et useFocusEffect
était render quand je changeais de tab, j'ai retiré, j'ai bien log, et j'ai testé et ça fonctionne
Quality Gate passedIssues Measures |
Quality Gate passedIssues Measures |
Link to JIRA ticket: https://passculture.atlassian.net/browse/PC-31778
Flakiness
If I had to re-run tests in the CI due to flakiness, I add the incident on Notion
Checklist
I have:
Screenshots
Enregistrement.de.l.ecran.2024-09-20.a.15.38.13.mov