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•2y ago
it's necessary of typescript so that the correct types can be enforced
fair-roseOP•2y ago
ok - thanks good to know just to be sure I haven't missed something else. Thanks.