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

paths: update layers when TransitPathEdit component is mounted #1180

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

tahini
Copy link
Collaborator

@tahini tahini commented Jan 8, 2025

fixes #1178

The upgrade to React 19 seemingly changed the handling of events in such a way that the path selection event is now handled before the TransitPathEdit component is mounted, while it was handled after in the React 16 version. So we call the updateLayers method at mount to display the selected path.

fixes chairemobilite#1178

The upgrade to React 19 seemingly changed the handling of events in such
a way that the path selection event is now handled before the
`TransitPathEdit` component is mounted, while it was handled after in
the React 16 version. So we call the `updateLayers` method at mount to
display the selected path.
@tahini tahini requested a review from kaligrafy January 8, 2025 15:35
@greenscientist
Copy link
Collaborator

Kind of curious, would other things be impacted by something like that?

@tahini
Copy link
Collaborator Author

tahini commented Jan 8, 2025

Kind of curious, would other things be impacted by something like that?

I'd say probably, but there's no way to find out until our users report bugs. But nothing critic that could lead to bad data or calculation errors (at least nothing worse than our current "bad data path" where schedules are not updated when paths are updated)

@tahini tahini merged commit f7f3de2 into chairemobilite:main Jan 9, 2025
6 checks passed
@tahini tahini deleted the fix1178 branch January 9, 2025 18:30
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.

paths: the path is not highlighted when opened in edit mode
2 participants