ValidateNavigateOptions doesn't seem to work #3981
-
I'm not sure what is going wrong here. const a: ValidateNavigateOptions = {
to: "/images/$id",
params: { id: "1" }, // Object literal may only specify known properties, and id does not exist in type ...
};
const navigate = useNavigate();
navigate({
to: "/images/$id",
params: { id: "1" }, // works
}); I have also tried passing generic parameters to the type. Is this supposed to work, or am I using the type utility incorrectly? |
Beta Was this translation helpful? Give feedback.
Answered by
schiller-manuel
Apr 12, 2025
Replies: 1 comment 6 replies
-
you need linkOptions for this https://tanstack.com/router/latest/docs/framework/react/guide/link-options |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
C-Higgins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you need linkOptions for this
https://tanstack.com/router/latest/docs/framework/react/guide/link-options