#query search params with href utility
1 messages · Page 1 of 1 (latest)
I think that href doesn't support query search params yet. Meanwhile I'm still using https://github.com/yesmeck/safe-routes for routes with search params. 😦
cool, thanks
1 messages · Page 1 of 1 (latest)
What's the best way to inject query params when using the href utility? Would it be this:
throw redirect(
`${href("/auth/verify-otp")}?email=${encodeURIComponent(email)}`,
);
I can't find any docs on the matter.
I think that href doesn't support query search params yet. Meanwhile I'm still using https://github.com/yesmeck/safe-routes for routes with search params. 😦
cool, thanks