Skip to content

Conversation

edgar-g-q
Copy link

@edgar-g-q edgar-g-q commented May 25, 2023

This is a PR to provide a workaround fix for #192
It is a simple solution that works, but not a clean solution imo. Here the reason why:
If I am defining a react state that I pass as a prop to the Gantt to control the viewMode, and I never set this viewMode to null, there is no reason why the viewMode inside some of the Gantt functions should be null at some point, making the entire application crash or enter an infinite loop. It would be better to figure out why the viewMode is set to null at some cases (when switching fast between viewModes several times).
Sadly, I do not have more time to investigate it, so I leave the decision of accepting / rejecting this PR up to you

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