Closed travismfrank closed 3 weeks ago
Possibly broken by https://github.com/mobxjs/mobx/pull/3893/files . It introduced new Previously isES6Set yielded false for observable set.isPlainES6Map
, but not isPlainES6Set
.
Thank you for the report, should be fixed in mobx@6.13.2
Intended outcome:
Calling the newly implemented
ObservableSet.intersection
with anotherObservableSet
as the argument causes a stack overflow error. This is because anObservableSet
argument passesisES6Set
, thus callingintersection
on that set with the first set as the argument. Repeat ad infinitum until V8 decides it's had enough.observableSet.intersection(otherObservableSet)
should just work.Actual outcome:
"Maximum call stack size exceeded" in Chrome. Stack overflow.
How to reproduce the issue:
Here's an interactive version, just click the button.
Versions
mobx@6.13.1