const searchParams = object({
profile: optional(fallback(string(), ""), ""),
});
const user = {
id: "1939488594",
name: "John Doe"
}
export const Route = createFileRoute("/messages/")({
validateSearch: searchParams,
component: RouteComponent,
});
function RouteComponent() {
return (
<Button asChild>
<Link to="/messages" search={{profile: user.id}}>View Profile</Link>
</Button>
);
}
when i click the url i get
http://localhost:3000/messages?profile="1939488594" when i want http://localhost:3000/messages?profile=1939488594.
how do i get this without the quotes?