-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Nodes in chart monitor are not reused properly when adding/removing them #269
Comments
Thanks for the report. Unfortunately, I'm just a newbie in D3. Maybe @romseguy or some one who are experienced with D3 can look into it. If i is a bug related to D3 directly, maybe we could upgrade it to |
The issue has been (hopefully) solved by reduxjs/d3-state-visualizer#13, but we need two releases upstream from @romseguy before the transitions can be fixed in the extension. @zalmoxisus what do you think of collaboratively moving all the extension parts to a new org (say, https://github.com/redux-devtools)? It'll be easier for the community to fix bugs in this case, because there'll be more people who can take a look at issues and PRs at any point in time. It'd be great if you could discuss this idea with other open source developers who've put efforts in building such a great tool. |
@kachkaev thanks for addressing that. Yes, I'll make an org and move the instrumentation and ui as well. |
ping @zalmoxisus 😃 @romseguy seems to be waiting for your move 😉 |
I know that it's not a solution, but is there a way to disable the animations? |
Hey @kachkaev thanks for working on that. Could you please publish that to npm so we can add it here. I see @romseguy granted access to that npm package. Without that nothing I can do from my side. |
Will publish a new version of |
Thanks for helping with that @kachkaev! |
|
Thanks @kachkaev! I'll fix also other critical issues these days and include it in |
It is included in |
This is a duplicate of reduxjs/d3-state-visualizer#12 reduxjs/redux-devtools-chart-monitor#17 and I'm just posting it here as a reminder to upgrade deps when (if) the problem is resolved.
Here is what's happening when I add three leafs to a list at the very top one by one and then remove them (also one by one):
The second (the largest) state branch is not affected at all, but there's quite a lot going on visually.
Those strange unexpected horisontal jumps probably happen because of how d3 treats ids of the nodes. If they are represented as an array and
id = i
, adding or removing an item in the middle of it is likely to bring in this effect.The text was updated successfully, but these errors were encountered: