-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Hi, so first off: this API rocks.
I'm looking into implementing transition animations for my app, which is powered by React Router.
For a "slide over" animation I'd need to know the direction of traversal. Now this is pretty easy to determine in the event handlers by comparing indexes but because my routing is handled by another library it would be very helpful to be able to access this information statically as well. (to avoid race conditions between the event handling)
So we have:
currentEntryprovides information about the current stateentries()provides information about the entire stack- ... what's missing is the user behaviour, how they have traversed the stack, I could have 3 entries but actually a path of 10 back-and-forth actions. That is my actual navigation history.
I'm not sure if this steps too far outside of the scope of the API but I'd love to hear your opinions on this.
In terms of a solution, getting something like lastEntry would solve the problem, but perhaps a list of last visited entries (probably limited to reasonable number) could support more use cases.