flushUpdate appears to freeze the browser in a Nivo chart. #1664
Unanswered
DanielLaubacher
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Note: I know I'm mentioning Nivo but ReactSpring appears to be the source of the slowness.
There are many calls to
flushUpdate
in Nivo charts and they appear to freeze the browser. This happens after the animation has finished.You can see in those calls in this image.

Here is a link to a demo of the slowness https://stnf3.csb.app. You can see that the freeze happens after the animation is complete. Let me know if I should create a GH issue for this. I thought it would be better to discuss it here first.
As far as I can tell this is the relevant code from Nivo: https://github.com/plouc/nivo/blob/master/packages/arcs/src/useArcsTransition.ts#L21
Beta Was this translation helpful? Give feedback.
All reactions