When error is thrown in a layout beforeLoad it renders the error component then goes back to rendering the page
Which project does this relate to?
Start
Describe the bug
When an error is thrown in a layout beforeLoad it is supposed to render the errorComponent currently it renders the errorComponent for a couple of second and goes back to rendering the layout component
Your Example Website or App
https://codesandbox.io/p/devbox/youthful-curran-xl86qh?workspaceId=ws_JZuiFY8VWVbpVnjYnet4za
Steps to Reproduce the Bug or Issue
Click the codesandbox link Go to the layout route You will see the errorComponent rendered for a couple of second and the normal component continue rendering
Expected behavior
When an error is thrown in a beforeLoad component only the errorComponent should be rendered
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Chrome
- Version: 1.105.2
Additional context
No response
I think this might be the same issue as #3462?
So this can be closed now? It looks like the duplicate issue was fixed