Why can't use errorComponent in createLazyFileRoute?
I try to use errorComponent in
createLazyFileRoute but the component didn't show up when error happen from loader. But when i put errorComponent in createFileRoute it's working like what i expected (the component show up).
I want to know why it's like that because in https://tanstack.com/router/v1/docs/framework/react/guide/code-splitting errorComponent is supported by the createLazyFileRoute
this is minimal producible example: https://stackblitz.com/edit/tanstack-router-gtkrcc?file=src%2Froutes%2Findex.lazy.tsx
thank you2 Replies
foreign-sapphire•2y ago
can you please create a github issue for this?
plain-purpleOP•2y ago
sure 👍