T
TanStack10mo ago
rising-crimson

Load virtual routes absolute path

Hi! I didn’t see anything in the docs for this. Currently, it seems that loading a virtual route file via an absolute path is not currently supported. I can sort of work around this by building a relative path from an absolute path but I wanted to check to see if I was missing something
4 Replies
extended-yellow
extended-yellow10mo ago
no this just does not exist yet could be added though
rising-crimson
rising-crimsonOP10mo ago
That would be amazing. Taking this one step further, would also be great if I could specify a package name. We have a monorepo with many packages that export components for routes so it would be so nice if we could tell the virtual router to just import the specific package and look for the router export or something
extended-yellow
extended-yellow10mo ago
yes i also thought about that however be aware that you still can only import a virtual route a single time because router generator will rewrite the id inside of it
rising-crimson
rising-crimsonOP10mo ago
Yea. We can work with that restriction

Did you find this page helpful?