How can I use "loader" with "createLazyFileRoute"?
I have this lazy route and I'm not sure how to use the loader function:
does anybody knows how to do it?
2 Replies
conscious-sapphire•15mo ago
Check the docs, you need to make a non-lazy route for the loaders, besides your lazy route.
genetic-orange•11mo ago
please also check automatic codesplitting. no need really to use lazy routes manually