You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice how you pull out TRef from the props of TComp. TRef would usually be of type Ref<...>. Then you wrap that in React.RefAttributes, which itself wraps the ref in Ref, leading to:
Which project does this relate to?
Router
Describe the bug
From your source code:
Notice how you pull out
TRef
from the props ofTComp
.TRef
would usually be of typeRef<...>
. Then you wrap that inReact.RefAttributes
, which itself wraps the ref inRef
, leading to:And that double-wrapping leads to type errors.
Your Example Website or App
https://stackblitz.com/edit/github-dhwbicy7?file=src%2Ftypes.tsx
Steps to Reproduce the Bug or Issue
Check out the type error in
types.tsx
.Expected behavior
Expected to be able to pass in
const ref: Ref<HTMLAnchorElement>
without an errorScreenshots or Videos
No response
Platform
[N/A]
Additional context
No response
The text was updated successfully, but these errors were encountered: