When using a custom eventRenderer that returns JSX, there is a significant delay in rendering events when scrolling, compared to when it returns a string. Additionally, multiple warnings appear in the console:
Warning: flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.
I want to attach a minimal reproducible example to this post, but there is an error when attaching it:
HTTP Error.
and in console:
Failed to load resource: net::ERR_CONNECTION_TIMED_OUT
Thanks for reporting this. Have you faced the error while attaching a zip? Uploading a zip is working fine on our end. If you still facing the issue, please upload it to google drive and share the link here. and please make sure to provide the access to everyone with the link.
This solved the warnings, but there's still a significant delay when returning JSX in the custom eventRenderer compared to a string. The rendering time is about fifteen times longer with JSX.
I've attached a link to a folder with videos that show the performance difference.
I tested it in production mode, and there's still a huge difference in rendering times between JSX and string for the custom eventRenderer. I've added to google drive folder videos with performance in prod mode:
Hi,
We are also experiencing the same performance decrease that Daniel stated, when using JSX in eventRendered as opposed to a string there is a major decrease in performance.
Additionally, we are still seeing the flushSync warning, we are using assignments and not resourceId.
I see there is an issue open to investigate this, is there an ETA on when this will be resolved?
Unfortunately, there is no updates, but I let our team know if we can improve the priority of that ticket to identify and provide details of what could be done to not have that performance issue.