Error with ref
assignment in Comp
component within Sidebar: Type 'string' is not assignable
#6080
Unanswered
cidkumagai
asked this question in
Q&A
Replies: 1 comment
-
By changing the type definition to use
Does this seem like the correct fix? I would appreciate any feedback on whether this approach is appropriate or if there might be a better solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am encountering a TypeScript error when trying to assign a ref in the Comp component within my Sidebar implementation. The error message is as follows:
This error occurs when using the Comp component, which conditionally renders either a Slot or an element based on the asChild prop. The ref assignment seems to be causing a type mismatch. I would appreciate any guidance on how to resolve this issue. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions