Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

add preloadRoutes function #161

Merged
merged 2 commits into from
Mar 5, 2018
Merged

add preloadRoutes function #161

merged 2 commits into from
Mar 5, 2018

Conversation

Rich-Harris
Copy link
Member

closes #160


return routes
.filter(route => {
return !pathnames || pathnames.some(pathname => route.pattern.test(pathname));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this take care of 4xx and 5xx, or is that to be added at a later stage?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just me being forgetful 😬 thanks! fix incoming

@Rich-Harris Rich-Harris merged commit ef0ca58 into master Mar 5, 2018
@Rich-Harris Rich-Harris deleted the gh-160 branch March 5, 2018 00:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Programmatically preload secondary routes
2 participants