If routes are defined after the app has been instantiated, the routeCollection[] is empty, and as such forPageLoad request throws an error
To reproduce:
var router = Davis(function() {
this.settings = {
linkSelector: scope + ' a',
formSelector: scope + ' form',
generateRequestOnPageLoad: true,
throwErrors: true,
handleRouteNotFound: false,
};
});
router.get('/post/:id', function());
router.start();
If routes are defined after the app has been instantiated, the
routeCollection[]is empty, and as suchforPageLoadrequest throws an errorTo reproduce: