Skip to content

Conversation

avishayil
Copy link
Contributor

  • Support for more complex, nested routes.
  • Every screen that is not isChild is being redirected to the
    InitialRoute screen. Exit is only available from the InitialRoute.
  • Title is being fetched according to the previousRoute on back button
    press, fixing some use cases in the previous class functionality.

- Support for more complex, nested routes.
- Every screen that is not isChild is being redirected to the
InitialRoute screen. Exit is only available from the InitialRoute.
- Title is being fetched according to the previousRoute on back button
press, fixing some use cases in the previous class functionality.
Ehesp added a commit that referenced this pull request Feb 19, 2016
- Added getPreviousRoute for correct back button functionality
@Ehesp Ehesp merged commit 569b2d1 into invertase:master Feb 19, 2016
@Divyeshkhatri
Copy link

Hello avishayil,

I want to know, How can we use this Navigate.js for nested routes.

export default {

ABC: {
    title: 'ABC',
    component: require('My component here').default,
    children: {
        BCD: {
            title: 'BCD',
            component: require('My component here').default,
            children: {
                CDE: {
                    title: 'CDE',
                    component: require('My component here').default
                }
        },
       }
	}
},
CDE: {
    title: 'CDE',
    component:  require('My component here').default,
    children: {
        DEF: {
            title: 'DEF',
            component: require('My component here').default,
            children: {
                EFG: {
                    title: 'EFG',
                    component:  require('My component here').default,
                    children: {
                        ABC: {
                            title: 'ABC',
                            component: require('My component here').default,
                        }
                    }
                }
        },

}

Now when user Navigate.forward() and reach to ABC route and now user want to redirect BCD page it is not possible?

Is this scenario possible in this ?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants