[cleanup] Improve the array of dependencies of some React hooks#6234
[cleanup] Improve the array of dependencies of some React hooks#6234sbegaudeau wants to merge 1 commit intomasterfrom
Conversation
|
Quick automatic review (please ignore this message) Pull Request Status: 🟢 OPEN Recommendation: Ready for a thorough review! Although CI is still pending, the changes are surgical and focused on React lifecycle improvements. Summary: 🚨 Critical & Architectural Issues
Suggested Fix: 10 nodes, Main
Suggested Fix: 10 edgeIds,
|
e8b845b to
56f7c5d
Compare
|
Quick automatic review (please ignore this message) Pull Request Status: 🟢 OPEN Summary: 🚨 Critical & Architectural Issues
According to our react-frontend-reviewer rules on Effect Dependencies, all dependencies MUST be correctly listed. The first
The second
Suggested Fix for 10 store,
|
56f7c5d to
e7420e9
Compare
|
Quick automatic review (please ignore this message) Pull Request Status: 🟢 OPEN Recommendation: Almost there! The PR is now structurally sound and correctly implements the previous architectural feedback. One final minor fix is needed to achieve full compliance with React hook rules. Summary: 🚨 Critical & Architectural Issues
Missing in Second
Suggested Fix: 10 diagramRefreshedEventPayload,
|
Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
e7420e9 to
4e6e6b9
Compare
|
Quick automatic review (please ignore this message) Pull Request Status: 🟢 OPEN Recommendation: Ready for approval! All architectural and React-specific issues identified in previous review rounds have been correctly and thoroughly resolved. Summary: 🚨 Critical & Architectural IssuesNone. All critical issues from previous rounds have been addressed:
|
Signed-off-by: Stéphane Bégaudeau stephane.begaudeau@obeo.fr
Pull request template
General purpose
What is the main goal of this pull request?
Project management
priority:andpr:labels been added to the pull request? (In case of doubt, start with the labelspriority: lowandpr: to review later)area:,difficulty:,type:)CHANGELOG.adocbeen updated to reference the relevant issues?CHANGELOG.adoc? (Including changes in the GraphQL API)CHANGELOG.adoc? For example indoc/screenshots/2022.5.0-my-new-feature.pngArchitectural decision records (ADR)
[doc]?CHANGELOG.adoc?Dependencies
CHANGELOG.adoc?CHANGELOG.adoc?Frontend
This section is not relevant if your contribution does not come with changes to the frontend.
General purpose
Typing
We need to improve the typing of our code, as such, we require every contribution to come with proper TypeScript typing for both changes contributing new files and those modifying existing files.
Please ensure that the following statements are true for each file created or modified (this may require you to improve code outside of your contribution).
useMutation<DATA_TYPE, VARIABLE_TYPE>(…)useQuery<DATA_TYPE, VARIABLE_TYPE>(…)useSubscription<DATA_TYPE, VARIABLE_TYPE>(…)useMachine<CONTEXT_TYPE, EVENTS_TYPE>(…)useState<STATE_TYPE>(…)?.(if the GraphQL API specifies that a field cannot benull, do not treat it has potentiallynullfor example)let diagram: Diagram | null = null;)Backend
This section is not relevant if your contribution does not come with changes to the backend.
General purpose
Architecture
Review
How to test this PR?
Please describe here the various use cases to test this pull request