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
include route in args for willFocus/didFocus #91
include route in args for willFocus/didFocus #91
Conversation
If this isn't a breaking change this is a welcome contribution, which should be able to be merged pretty smoothly. I personally depend on the name in some of my code, but i've long wished for having an actual UID for stuff. @charpeni , opinions? |
In lieu of #58, I tried out this change in my project that's currently depending on the |
While i like that it's backwards compatible, i think that emitting anything else but a single object is potentially misleading. I wasn't even aware that .emit supports a third argument that way. The implementation for emitter is as follows:
|
@SEthX For consistency, each emitted event should pass the route. That would allow developers to use it however they want, but it would obviously be a breaking change. |
I second that @reergymerej . |
I'll send another PR to provide |
I'm agree with that. 👍 Thank you @reergymerej |
So, merge? |
semver FTW! |
Should we put that into a branch named v0.9.0 waiting for the other changes ? |
We could, but we can also do it all in one go. On Fri, Mar 4, 2016 at 2:59 PM Nicolas Charpentier notifications@github.com
|
include route in args for willFocus/didFocus
This address #90, providing access to the
route
along withroute.name
so the user can query the route for whatever is needed.