Skip to content

Beta Docs: Metadata page incorrectly uses ReactDOM.preload() for <link rel="preconnect" /> example #48356

@GeorgeIpsum

Description

@GeorgeIpsum

What is the improvement or update you wish to see?

On https://beta.nextjs.org/docs/api-reference/metadata#link-relpreconnect:

image

The example listed here used ReactDOM.preload instead of ReactDOM.preconnect here. As far as I know, this is incorrect, but the appropriate function can just be swapped in. Super easy fix! (Didn't see where if possible to create a PR for beta docs changes)

Is there any context that might help us understand?

This should be it

Does the docs page already exist? Please link to it.

https://beta.nextjs.org/docs/api-reference/metadata#link-relpreconnect

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationRelated to Next.js' official documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions