T
TanStack2y ago
mute-gold

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
mute-gold
mute-goldOP2y ago
I just figured out that the params are not what I ment probably I found ithe solution, search: { param: "test" }
other-emerald
other-emerald2y ago
glad you solved the problem, I think you menant to post in #router-questions

Did you find this page helpful?