-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
onBecome(Un)Observed didn't trigger when use number as key of observable map #2067
Closed
3 tasks done
Labels
Comments
I think the problem is here: mobx/src/api/become-observed.ts Lines 50 to 51 in ec011d5
It should go like: const atom: IObservable =
typeof arg3 === "function" ? getAtom(thing, arg2) : (getAtom(thing) as any)
const cb = typeof arg3 === "function" ? arg3 : arg2 PR welcome |
danielkcz
added
ready-to-be-implemented-by-volunteer
and removed
👓 needs investigation
labels
Aug 5, 2019
ok, I'll try |
PR is made: #2073. It's my first time doing PR, please help review. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[x] Issue:
when use number as key of observable map, onBecomeObserved didn't trigger callback, but it worked fine when using string as key
mobx: 5.13.0
The text was updated successfully, but these errors were encountered: