Skip to content

Link component's preloadIntentProximity prop is being set on the DOM #7127

@SkandarS0

Description

@SkandarS0

Which project does this relate to?

Router

Describe the bug

As the title said,
when setting the prop preloadIntentProximity on the <Link /> component, it is set on the dom,

Image

which results in a console error:

React does not recognize the preloadIntentProximity prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase preloadintentproximity instead. If you accidentally passed it from a parent component, remove it from the DOM element.

Your Example Website or App

https://tanstack.com/router/latest/docs/framework/react/examples/kitchen-sink-file-based

Steps to Reproduce the Bug or Issue

  1. Go to the example attached in the issue,
  2. Find the dashboard.invoices.route.tsx file.
  3. Add preloadIntentProximity to the Link component.
  4. Open the console and inspect.

Expected behavior

As a user I expected no react DOM error, and the internal prop to not be set on the DOM.

Screenshots or Videos

No response

Platform

  • Router Version: 1.168.10
  • OS: Windows
  • Browser: Chrome
  • Browser Version: 146
  • Bundler: vite
  • Bundler Version: 8.0.7

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions