-
-
Notifications
You must be signed in to change notification settings - Fork 145
[BUG] Loading + relayoutData => infinite events #608
Comments
@orenbenkiki can you be more specific about the infinite events? If I added some logs in graph component, it looks like it only gets triggered once, I did see a buffer-flush like action after selection though, @alexcjohnson any comments on the gif? |
I have encountered this issue as well by wrapping a The {"autosize": true} |
@Batalex Ok I was able to reproduce the issue by uncommenting the lines in the gist. |
@byronz I just thought of something which could be related to this issue. Returning Maybe the solution to both issues could be to make the loader less sensitive e.g. delay the animation & do not emit events for some time after the first one? |
A partial workaround for this was described in plotly/dash#879 |
a quick trial by making the part of the reason stated in #584 |
Pip list:
Description
If one wraps a
Graph
with aLayout
, and also registers a callback forrelayoutData
, this results in an infinite stream ofrelayoutData
events being generated.See an example in https://gist.github.com/orenbenkiki/66986fecd1c85280e48e2babdb945a4e
Expected behavior
A single
relayoutData
event should be generated, and a new one should only be triggered when there is an actual pan/zoom event.The text was updated successfully, but these errors were encountered: