You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very useful if async methods like getComponent(s), getChildRoutes, getIndexRoute will be able to support promises, for example with https://github.com/gaearon/promise-loader route definitions could be very small and elegant:
{getChildRoutes: require('promise?global!./path/to/route')// when called returns a promise}
Currently it does not look so good:
{getChildRoutes: (partial,cb)=>{require('promise?global,route-feed!./routes/feed')().then(cb.bind(null,null));// this is needed for cb(null, file);}}