samdenty/console-feed

When console-feed is used to console click event target e, some times it will cause the page to crash

y805939188 opened this issue · 0 comments

Codesanbox: https://codesandbox.io/s/elegant-maxwell-sjem1?file=/index.js

Hello, I found that sometimes the page crashes when console.log(e) when I use a public component library like ant-design.
But I don’t think this is a problem with the component library like ant-design.
Because when I use other component libraries, if console.log(e), I also have this problem.
Even when my project has a little complexity, even if I use the native tag, the problem will occur.
But when the project is very simple, if console.log(e), the page will just be stuck for a while, about a few seconds.
So I guess it’s because when the project becomes more complex, the parent-child relationship between the elements leads to the circular reference of e.target, which leads to an endless loop.