-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Infinite loop when adding DOM element #507
Comments
Hello @krom-xr. Normally, a Baobab tree is not supposed to hold anything but raw data, not DOM elements. However this case seems quite strange indeed. I think the tree tries to deep clone the element and stumble upon cyclic references and such. If you really want to do that, you can try turning off the let example = new Baobab({test: {}}, {persistent: false}); |
Ok. Thanks. In may case -
Thanks for answering. Now i solve my problem. But may be other users can fall into similar situation |
Probably so. But checking for circular reference does have a performance cost. You should really avoid storing classes from the DOM in a Baobab tree if you can, though. |
After
.set(...)
- infinite loop. Browser tab not respondingThe text was updated successfully, but these errors were encountered: