-
export const links = (/* not allow param */) => {
// I'd want to get server data.
...
} Any idea? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Dec 13, 2024
Replies: 1 comment 1 reply
-
No, links function receive no parameter, this is done this way to links can be preloaded before a navigation when using If you need to add links based on data from your loaders, you can use the MetaFunction which can return links too. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kmvan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.