router icon indicating copy to clipboard operation
router copied to clipboard

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

Open olhamide opened this issue 1 year ago • 2 comments

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

olhamide avatar Feb 16 '25 19:02 olhamide

I think this might be the same issue as #3462?

burnedikt avatar Feb 23 '25 19:02 burnedikt

So this can be closed now? It looks like the duplicate issue was fixed

brenelz avatar Aug 02 '25 19:08 brenelz