react-d3-tree
react-d3-tree copied to clipboard
baseNodes translated to infinite => `transform="translate(2744000,280)"`
Are you reporting a bug, or opening a feature request?
A bug
What is the actual behavior/output?
I'm computing a tree on component load but it is weirdly rendered :

What is the behavior/output you expect?

I succeeded in having the expected behavior because I stringified what my function computed for the tree and just paste it in my code. I made sure the 2 tree objects are equal (with deep-equal lib). What could be wrong here?
What version of react-d3-tree are you using?
1.16.1
UPDATE
if my function returns return JSON.parse(JSON.stringify(newTree)); it succeeds rendering the tree
if it returns return newTree then it fails.