#Is there a function to check whether a route exists or not?

2 messages · Page 1 of 1 (latest)

gray copper
#

Does Tanstack Router expose a function anywhere that I can pass a string and it will return me whether or not the string matches a route that exists on the router? I know there is "useMatchRoute" but I want to use it in my validator function and also that one evaluates the strings relative to the current path while I would like one that evaluates from the root path.

topaz parcel
#

router.matchRoutes()