Skip to content
Discussion options

You must be logged in to vote

You can use the useMatches hook to add those <link rel="preload" /> in the of your document.

Use the useMatches to access the data of each route loader, and get the resources you need, then render the link tags.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@QuentinWidlocher
Comment options

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