router icon indicating copy to clipboard operation
router copied to clipboard

Empty HeadContent if __root beforeLoad throws

Open alvarosevilla95 opened this issue 6 months ago • 0 comments

Which project does this relate to?

Start

Describe the bug

If beforeLoad on __root.tsx throws an error, the meta values defined are missing <HeadContent>.

Your Example Website or App

https://codesandbox.io/p/devbox/heuristic-tom-yr9vs8

Steps to Reproduce the Bug or Issue

  1. Go to __root.tsx
  2. Uncomment the throw in beforeLoad
  3. Using the web inspector, see that the content of <head> is missing all the meta values

Expected behavior

<HeadContent> contains meta tags even if beforeLoad throws

Screenshots or Videos

No response

Platform

  • Version: 1.121.21

Additional context

No response

alvarosevilla95 avatar Jun 17 '25 17:06 alvarosevilla95