T
TanStack2y ago
fair-rose

createFileRoute question

Hi, I'm using file based routing and wonder why a path is required to the createFileRoute method? It doesn't seem to matter what I specify as path. For example, if I set it to '/' (which is a valid path) on all my createFileRoute, the app works just fine. I can't specify anything though, it has to be some of my valid paths to not get type(script) error though.
2 Replies
national-gold
national-gold2y ago
it's necessary of typescript so that the correct types can be enforced
fair-rose
fair-roseOP2y ago
ok - thanks good to know just to be sure I haven't missed something else. Thanks.

Did you find this page helpful?