graph position wrong after data prop change
If i update the data props of graph without remounting it, the graph goes out of place.
See the demo below.
I can fix it by adding
const simulation = forceSimulation();
simulation.strength = {};
to https://github.com/uber/react-vis-force/blob/6b661279392718347b3ea716cdf81dedb2ed2b2b/src/utils/d3-force.js#L263 and renaming the simulation param, but that doesn't look like a proper fix.
facing this too
Also facing this.
Did anyone solve this?
Facing this too
Me too!
It seems @James2516 addition was pushed to react-vis-force/src/utils-d3-force.js but still it doesn't work for me. I've read in other related open issues that it might be also related to using .map to generate nodes and links.
@Rosa what could be the particular issue with respect to using .map? Where did you read this?
@kristianmandrup was issue #60.