Skip to content

Can the links function load data dynamically, like the metas function? #12534

Answered by sergiodxa
kmvan asked this question in Q&A
Discussion options

You must be logged in to vote

No, links function receive no parameter, this is done this way to links can be preloaded before a navigation when using <Link preload>, otherwise RR would have to first fetch the data and then preload links.

If you need to add links based on data from your loaders, you can use the MetaFunction which can return links too.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by kmvan
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