Change $subscribe to a different name to not conflict with rx implementations #1003
ScottAwesome
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is really an ergonomics idea.
If you use any of the major observables implementation, like rxjs they all use
subscribeandunsubscribeto mean something with observables.As an ergonomic standpoint, having both
$subscribeandsubscribe(and in some cases, if you follow the RX nomeclature, observables themselves may be namedobserved$so you end up with something likeobserved$.subscribe), things become confusing to quickly grasp what you are or are not subscribing to in a code base.The though here being so we don't have these naming clashes, is to rename
$subscribeto$observethere by removing the nomenclature confusion.I realize this is likely a small lift, however it could be done via deprecation and just aliasing
$subscribeto$observeAlternative naming of course, is welcome!
My hope is this makes it just a little more ergonomic to use
rxjsand others with piniaBeta Was this translation helpful? Give feedback.
All reactions