-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Describe the bug
I tried to use errorComponent in createLazyFileRoute but the component didn't show up when an error happened from the loader. But when I put errorComponent in createFileRoute it's working like what I expected (the component shows 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
Your Example Website or App
https://stackblitz.com/edit/tanstack-router-gtkrcc?file=src%2Froutes%2Findex.lazy.tsx
Steps to Reproduce the Bug or Issue
- open the example app in stackblitz
- uncomment
errorComponentincreateLazyFileRoute, the component not show up - uncomment
errorComponentincreateFileRoute, the component show up
Expected behavior
I was expecting the 'errorComponent' to show up from the 'createLazyFileRoute'
Screenshots or Videos
No response
Platform
- OS: Linux
- Browser: Chrome
- Version: 122.0.6261.111
Thank you
Metadata
Metadata
Assignees
Labels
No labels