经验分享 · 2024年3月9日

Solved el-table or bootstrap treetable error:Error in render: “RangeError: Maximum call stack size exceeded”

Everything works well until I add a new node to the tree.

Error in render: "RangeError: Maximum call stack size exceeded"

The reason:

When using tree table, we use row-key=”id” to identify a node, the id field must be unique, and the child id must not equal to its’ parent id, otherwise the code will enter loop status when rendering the tree, then report the above error.

Changing the parentid field in database to a logical value, the error gone.