-
Notifications
You must be signed in to change notification settings - Fork 509
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
[FIX] Replace React.DOM render with createRoot #174
Conversation
Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
…rker Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
Since we started using the concurrent model applied by React's createRoot, I needed to adapt the Chart component's update behaviour to wait for the next cycle using queueMicrotask, which has better performance than setTimeout in this type of scenario. |
Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
Signed-off-by: Luiz Bezerra <luiz.bezerra@ctw.bmwgroup.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Liked the "queueMicrotask"
User-Facing Changes
N/A
Description
It was removed from the deprecated React.DOM and replaced by createRoot.
It removed StrictMode as it caused duplicate execution in the application's dialog.
Checklist