-
Notifications
You must be signed in to change notification settings - Fork 642
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
array.shift/pop not working with array length === 1 #1105
Comments
Thanks! It's definitely a bug. Introduced in 3.2.2. Used to throw |
shouldn't it just return the other pushed item? |
It should return .storedValue ( |
At first glance it seems like a mobx bug:
It seems like we should check |
I think a peer dep upgrade is better, but that's just my personal opinion. |
Both :) Peer dep is the proper thing to do. But after that, nobody will
notice the warnings printed by npm / yarn, as nobody ever looks at them,
see needs to be documented as well :-P
Op di 11 dec. 2018 om 18:04 schreef Javier Gonzalez <
[email protected]>:
… I think a peer dep upgrade is better, but that's just my personal opinion.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1105 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhKhP5qBWcso0E8aCjgfNB02_EXKdks5u3-WzgaJpZM4ZLdET>
.
|
To fix this issue, please upgrade your mobx version to 4.8.0/5.8.0. |
For new users will be fixed by #1111 |
Bug report
Sandbox link or minimal reproduction code
https://codesandbox.io/s/0mn56vlkw0?expanddevtools=1&hidenavigation=1&module=%2Fsrc%2Findex.ts&view=editor
Describe the expected behavior
1 2
Describe the observed behavior
1 ScalarNode$$1 {subpathAtom: Atom$$1, state: 4, hookSubscribers: Object, environment: undefined, subpath: ""…}
The text was updated successfully, but these errors were encountered: