T
TanStack2y ago
afraid-scarlet

is using route.fullPath still possible for index routes with trailingSlash never?

This stopped working (in ts-land) with the type handling of trailingSlash, wondering if there is a workaround I'm not aware of, other than typing out the full path. See line 67 here: https://stackblitz.com/edit/tanstack-router-xrnp9s?file=src%2Fmain.tsx%3AL68
2 Replies
exotic-emerald
exotic-emerald2y ago
cc @Chris Horobin
provincial-silver
provincial-silver2y ago
fullPath does not match to because branches and index routes are deduped and trailing slashes are either added or removed for to We could add a function to each route to get this but it would have to be a function due to circular references

Did you find this page helpful?