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
I'm trying to create DrilldownRoute so that it will animate transitions to and from the index and child routes.
I have read the API docs and looked at the props passed into my components in the React dev tools, and I am absolutely in the dark about the following. In version 2.0.0, how would I determine, from the render() method of the DrilldownRoute, if:
The IndexRoute is active (and no child routes)
A child route is active and which one
The method must work regardless of whether the above routes are under the app root or nested arbitrarily deep inside of other routes.
The text was updated successfully, but these errors were encountered:
We want to make sure that the GitHub issue tracker remains the best place to track bug reports and feature requests that affect the development of React Router.
We also have an active and helpful React Router community on Reactiflux, which is a great place to get fast help with React Router and with the rest of the React ecosystem. You can join at https://discord.gg/0ZcbPKXt5bYaNQ46.
We want to build better overall docs very soon (in time for, or shortly after, 2.0.0 releases), which would include better documentation on the whole active state and checking for it in your components.
Hopefully this question will illuminate a lack of clarity in the documentation.
I have this in my route config:
I'm trying to create
DrilldownRoute
so that it will animate transitions to and from the index and child routes.I have read the API docs and looked at the props passed into my components in the React dev tools, and I am absolutely in the dark about the following. In version 2.0.0, how would I determine, from the
render()
method of theDrilldownRoute
, if:The method must work regardless of whether the above routes are under the app root or nested arbitrarily deep inside of other routes.
The text was updated successfully, but these errors were encountered: