regex in useMatch

Is there a way to use a regex in useMatch? I would like to match /book/2 ... but not just /book
3 Replies
Alex Lohr
Alex Lohr2y ago
You can use the optional MatchFilter argument, which is unfortunately undocumented. The types show that a regex is supported, at least. I don't want to @ Ryan, but it seems he added this functionality without properly documenting it.
Ladvace
LadvaceOP2y ago
ok I'm gonna try figuring out how to use it with MatchFilter, thanks
Alex Lohr
Alex Lohr2y ago
Good luck!
Want results from more Discord servers?
Add your server