How should I be expected to parse params ?
Hello there, I'm currently migrating one of our frontends to tsr from react-router.
I would like to be able to parse the route's path params through a zod parser.
but when I try to:
I get an error:
What am I doing wrong here ?
I didn't find too much documentation on the parseParams, no in code description too.
If I'm able to
parseParams should I not be allowed to transform it to something else ?
PS: It seems to go away if I return some kind of record ?3 Replies
unwilling-turquoise•2y ago
is this a typescript or a runtime error?
old-apricotOP•2y ago
typescript
unwilling-turquoise•2y ago
can you please provide minimal complete example e.g. by forking one of the existing examples on Stackblitz?