You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default rootID value is '0'. According to the source code analysis, if the customID and rootID passed in the data are repeated. Then this problem will occur. Therefore, I think a better solution is to customize the rootID configuration to ensure that the rootID is unique.
such as const tree = arrayToTree(array, { parentProperty: 'ParentId', customID: 'Id', rootID: 'root' });
When data had 2 or more top levels 'root' there is stack overflow occured.
Here is representation:
https://repl.it/@Nexis/NotableElegantLaws
Just remove top root level and all works fine.
The text was updated successfully, but these errors were encountered: