Skip to content

Empty HeadContent if __root beforeLoad throws #4452

Open
@alvarosevilla95

Description

@alvarosevilla95

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

contains meta tags even if beforeLoad throws

Screenshots or Videos

No response

Platform

  • Version: 1.121.21

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    startEverything about TanStack Start

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions