router
router copied to clipboard
Empty HeadContent if __root beforeLoad throws
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
- Go to __root.tsx
- Uncomment the throw in
beforeLoad - 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