Skip to content

Fix state transition flowchart docs#3580

Merged
latekvo merged 8 commits intomainfrom
@latekvo/fix-state-flow-chart-docs
Jun 30, 2025
Merged

Fix state transition flowchart docs#3580
latekvo merged 8 commits intomainfrom
@latekvo/fix-state-flow-chart-docs

Conversation

@latekvo
Copy link
Copy Markdown
Member

@latekvo latekvo commented Jun 27, 2025

Description

This PR fixes:

  • Malformed flowchart in the state transition documentation.
  • Infinite re-rendering of the flowchart component.
  • Multiple warnings and errors due to package version changes.

This PR is only meant fix the recently introduced malformations as well as the worst of the issues with this component.

Before After
image image

Test plan

  • Start docs: cd packages/docs-gesture-handler; yarn; yarn start;
  • Open /react-native-gesture-handler/docs/fundamentals/states-events/ docs page.

@latekvo latekvo requested a review from m-bert June 30, 2025 09:40
@latekvo latekvo marked this pull request as ready for review June 30, 2025 09:40
Comment on lines +38 to +42
// Timing issue, neither useEffect, useLayoutEffect or requestAnimationFrame work
const timeout = setTimeout(() => {
resetPan();
resetLongPress();
}, 300);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

😞

@latekvo latekvo merged commit 1401694 into main Jun 30, 2025
1 check passed
@latekvo latekvo deleted the @latekvo/fix-state-flow-chart-docs branch June 30, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants