Skip to content
Discussion options

You must be logged in to vote

It is implemented by the matchRoutes api provided in @remix-run/router, see

export const preloadLink = (link: string) => {
const match = matchRoutes(routes, link);
if (match?.length) {
const { route } = match[0];
route.preload();
}
};
.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Timeless0911
Comment options

@markH5
Comment options

@Timeless0911
Comment options

Answer selected by markH5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants