passing file route path as parameter to createFileRoute #2344
Unanswered
narasimhajupally
asked this question in
Q&A
Replies: 1 comment
-
TS does not know which file you are currently in. that's why we need to give the Route an id that can used to look it up in the route tree. we use the path as such an id |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
I want to understand why there is a need to pass the file path as a parameter.
For example, in nextjs we export a default component that becomes a route without manual hardcoding.
Beta Was this translation helpful? Give feedback.
All reactions