Post

Type-safe route params: this one is fairly similar too. Both Next.js and Waku support it, with small differences in coding style.

1 repost4 likes

Yeah, I think that would be fine. Haven't done much React for a while but I always like wouter (where this was possible.)

yeah but both are classic typescript “type safety” and not truly sound. if you rename the file and don’t update the type it breaks. I’m curious what this looks like with `createRoutes` tho. one of these days I swear I’ll find time to try out waku.

Yeah, it's hand-written. It's not truly sound, but if you rename the file and don't update the type, tsc will complain. Hope you find the time, and I'd love to hear your feedback.