You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
config onDidChange does not return keypath in event #7918
My memory is a bit fuzzy, but I think the reason is that we wanted to encourage people to observe a specific key path, which made supplying the key path redundant.
Yeah, you are now always observing a specific key-path. If you don't pass a key-path, you are observing the empty key-path (the entire object). The oldValue and newValue always represent the values of the key-path that you're observing. So it doesn't really make sense to pass a key-path any more.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
abe33 commentedon Jul 16, 2015
Yes, you're right, there's also https://github.com/atom/atom/blob/v1.0.2/src/config.coffee#L1017 that need to be changed as well.
jamesgpearce commentedon Jul 17, 2015
OK, tagged
documentationbut I think the path would be pretty interesting. Or is there a reason why it can't be surfaced?benogle commentedon Jul 17, 2015
cc @nathansobo I cant remember if we took the keyPath out? I remember having a discussion about it.
nathansobo commentedon Jul 27, 2015
My memory is a bit fuzzy, but I think the reason is that we wanted to encourage people to observe a specific key path, which made supplying the key path redundant.
maxbrunsfeld commentedon Jul 27, 2015
Yeah, you are now always observing a specific key-path. If you don't pass a key-path, you are observing the empty key-path (the entire object). The
oldValueandnewValuealways represent the values of the key-path that you're observing. So it doesn't really make sense to pass a key-path any more.So we should change the docs.
Merge pull request #9313 from yakirac/yc-docs-rm-onDidChange-event-ke…
lock commentedon Jan 19, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!