T
TanStack15mo ago
fair-rose

params in useNavigation, not working

I was trying to add some params when navigating to a new route:
navigate({
to: "/settings",
params: { id: "test" },
// hash: "my-hash", //the hash seems working fine
});
navigate({
to: "/settings",
params: { id: "test" },
// hash: "my-hash", //the hash seems working fine
});
this navigate correctly to /settings but I don't see any /settings&id=test
2 Replies
fair-rose
fair-roseOP15mo ago
I just figured out that the params are not what I ment probably I found ithe solution, search: { param: "test" }
genetic-orange
genetic-orange15mo ago
glad you solved the problem, I think you menant to post in #router-questions

Did you find this page helpful?