react-router-component icon indicating copy to clipboard operation
react-router-component copied to clipboard

added the notion of router hierarchy was #82

Open MarkNijhof opened this issue 11 years ago • 2 comments

Now all routers are automatically added to a list and enabled the use of this.navigate('../other_route') which then takes the parent route to execute navigate on. Not tested but this should also enable this.navigate('../../other/route'). Works as well with [Link href=../other_route]home[/Link]

MarkNijhof avatar Sep 16 '14 22:09 MarkNijhof

Thanks. I need some time to verify this and the tests but it looks pretty good to me.

STRML avatar Sep 16 '14 22:09 STRML

No problem, the code has changed a bit since last commit you (maybe) saw, now it jumps straight to the correct syntax instead of walking the tree back up. The tests now have 3 levels of routers and I walk from the nested ones back up one level and the double nested one I walk back up 2 levels

MarkNijhof avatar Sep 16 '14 22:09 MarkNijhof