Make a type safe URL string with params and searchParams so that users can copy i
Given a route, is there a way to create a strongly typed url string for users to copy?
3 Replies
like-gold•2y ago
I did something like this
You could just put the option right into
router.buildLocation as well, but it doesn't seem to type the params correctlyflat-fuchsiaOP•2y ago
thanks, I'll give it a try
Worked perfectly, I put the options in directly and had some issues with
search params but not a problem at all.like-gold•2y ago
Glad to hear!