router icon indicating copy to clipboard operation
router copied to clipboard

When using createLink(), activeProps type should allow component props

Open olivierpascal opened this issue 1 year ago • 0 comments

Describe the bug

image

TS error: Object literal may only specify known properties, and 'selected' does not exist in type 'AnchorHTMLAttributes<HTMLAnchorElement> | (() => AnchorHTMLAttributes<HTMLAnchorElement>)'.

Beside, no className should be provided to component to make this function completely agnostic.

Your Example Website or App

https://stackblitz.com/edit/github-ayifmj?file=src%2Fmain.tsx,src%2Froutes%2Findex.tsx

Steps to Reproduce the Bug or Issue

Click on the stackblitz link and notice the TS error.

Expected behavior

No TS error.

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

olivierpascal avatar Aug 03 '24 11:08 olivierpascal