Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When error is thrown in a layout beforeLoad it renders the error component then goes back to rendering the page #3453

Open
Danieljs-codes opened this issue Feb 16, 2025 · 0 comments

Comments

@Danieljs-codes
Copy link

Danieljs-codes commented Feb 16, 2025

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

@Danieljs-codes Danieljs-codes changed the title When error is thrown in a layout beforeLoad file it renders the error component then goes back to rendering the page When error is thrown in a layout beforeLoad it renders the error component then goes back to rendering the page Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant