We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a*:
MobX version: 3.1.7 Code:
var a2 = mobx.observable([3, 4]) var result = [1, 2].concat(a2)
I expect result to be [1, 2, 3, 4]. But it is [1, 2, ObservableArray]
[1, 2, 3, 4]
[1, 2, ObservableArray]
The text was updated successfully, but these errors were encountered:
Mark observable array as concat-spreadable mobxjs#984
952f4f3
Unfortunately this will cause unexpected behaviour in older browsers (see #806)
Sorry, something went wrong.
This is indeed a known limitation until proxies are fully supported. Use a2.slice() instead. Also see the docs.
a2.slice()
0
another way to concat array in mobx:
const arr = [...self.data, ...result.data.data.customers] self.data.replace(arr)
No branches or pull requests
I have a*:
MobX version: 3.1.7
Code:
I expect result to be
[1, 2, 3, 4]
. But it is[1, 2, ObservableArray]
The text was updated successfully, but these errors were encountered: