Skip to content
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

fix update array event using this as object instead of proxy #1964

Merged
merged 2 commits into from
May 24, 2019

Conversation

xaviergonz
Copy link
Contributor

I just noticed that array "splice" would return the array proxy as object, yet "update" would return the array itself
This PR fixes that

@coveralls
Copy link

coveralls commented May 11, 2019

Coverage Status

Coverage remained the same at 93.927% when pulling d9f3894 on fix-array-update-not-returning-proxy into 333dfe1 on master.

@ItamarShDev
Copy link
Member

Seems OK
any possible side affects we can think of?
maybe add some tests?( i am not sure they will really add any value)

@xaviergonz
Copy link
Contributor Author

None that I can think of, since the other one was updated to use proxy I can imagine this one was not just due to an oversight

@ItamarShDev
Copy link
Member

Let's merge then :)

@xaviergonz
Copy link
Contributor Author

merged, don't think this needs backporting anyway since mobx 4 does not use proxies

@xaviergonz xaviergonz merged commit 6d2e38e into master May 24, 2019
@mweststrate
Copy link
Member

Released as 4.10.0 / 5.10.0

@danielkcz danielkcz deleted the fix-array-update-not-returning-proxy branch August 19, 2019 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants