-
https://www.mobxjs.com/refguide/array.html#array-limitations-in-mobx-4-and-below Issue: const test: ObservableArray = [item1, item2, item3]
const newArray = [].concat(test); // returns [[item1, item2, item3]] instead of [item1, item2, item3] So, it puts the full array on the inside instead of spreading it. The solution is either I am just wondering if this should be fixed after MOBX 4 or if the documentation for this Running: "mobx": "^6.2.0",
"mobx-react": "^7.1.0", |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The official documentation is here (mobxjs.com isn't ours): The behavior depends on proxy configuration and availability - without proxy the behavior matches V4, with proxy the behavior matches V5: |
Beta Was this translation helpful? Give feedback.
The official documentation is here (mobxjs.com isn't ours):
https://mobx.js.org/README.html
The behavior depends on proxy configuration and availability - without proxy the behavior matches V4, with proxy the behavior matches V5:
https://codesandbox.io/s/arrayconcat-xigy2?file=/index.js