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

The registering of the Chart.js elements can't be part of the useEffect #14

Merged

Conversation

Alex-NRCan
Copy link
Member

@Alex-NRCan Alex-NRCan commented Oct 18, 2023

The registering of the Chart.js elements can't be part of the useEffect handle after all.

Locally, the solution works, but when running from the build files, it seems the Chart.js registering runs 'too late' if it's done inside the useEffect().

Also, now using registerables which is a shortcut created by Chart.js instead of explicitly registering element by element.


This change is Reviewable

@Alex-NRCan Alex-NRCan closed this Oct 18, 2023
@Alex-NRCan Alex-NRCan reopened this Oct 18, 2023
@Alex-NRCan Alex-NRCan self-assigned this Oct 18, 2023
@Alex-NRCan Alex-NRCan merged commit b0d37ee into Canadian-Geospatial-Platform:develop Oct 18, 2023
1 check failed
@Alex-NRCan Alex-NRCan deleted the update-babel branch October 18, 2023 19:19
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.

1 participant