Skip to content

Nested subRoutes data is called in reverse order than activate #348

@sztrzask

Description

@sztrzask

Consider the following:

   router.map(
                {
                    '/authorization': {
                        component: App.Authorization,
                        subRoutes:
                        {
                            '/': {
                                component: App.List,
                                name: 'list'
                            },
                            '/list': {
                                component: App.List,
                                name: 'list'
                            },
                            '/item/:id': {
                                component: App.ListItemDetails,
                                name: 'item-details'
                            }
});

refreshing the page at /authorization/list route calls transitions hooks in the following order:

authorization  activate
list  activate
list  data
authorization  data

Shouldn't data be called in the reversed order, i.e. the same as activate hook? If this is by design, then could the docs be updates? So far nothing suggest that data is called in the reverse order to the authorization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions