-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
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();
Metadata
Metadata
Assignees
Labels
No labels