Skip to content

Route null on navigation - While using children routes #1227

@epozsh

Description

@epozsh

I downloaded react-starter-kit intl with upgraded version and i get error with route null.
I was using previus version with webpack v1.And there is working well!
As i test using keyword debugger the error happen in routes with children, because 1st it goes to this code

code 1st
 async action({ next }) {
    // Execute each child route until one of them return the result
    const route = await next(); //null

    // Provide default values for title, description etc.
    route.title = `${route.title || 'Untitled Page'} - www.reactstarterkit.com`;
    route.description = route.description || '';

    return route;
  },

and after that it goes here

code2ond
export default {
  path: '/news',
  children: [
    {
      path: '/',
      async action({ path, store }) {
      return .....
     },
     {
      path: '*',
      async action({ path, store }) {
      return .....
     },
 ]

but it should be backwards. code2nd -> code1st.
Am i missing something with this new version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions