React-starter-kit: Route null on navigation - While using children routes

Created on 17 Apr 2017  路  4Comments  路  Source: kriasoft/react-starter-kit

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?

bug

Most helpful comment

All 4 comments

Try to use next(true) as a temporary solution

@frenzzy Do you have a sketch for fixing this?

Fixed in universal-router v3.1.0 and updated in #1237

Was this page helpful?
0 / 5 - 0 ratings