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
I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
Define the props for a Pie component in an object, and set the type of the object to PieProps. Then pass those properties to a Pie component, and you'll get a type error
What is expected?
The PieProps type should match the Pie component props
What is actually happening?
PieProps does not match Pie components props
Environment
Info
Recharts
v2.1.6
React
16.14.0
System
macOS Big Sur 11.6
Browser
Chrome 95.0.4638.69
The text was updated successfully, but these errors were encountered:
I second this issue. Probably related to #2665
The ref that the component exposed is the default class component ref, pointing to the instance of that component and not the DOM element.
Ran into this issue creating a library component wrapper for a line chart.
A quick fix for this i've been using is to Omit the type value for ref and add a generic/typed ref in its place, like, and just throwing some basic idea out:
Reproduction link
Steps to reproduce
Define the props for a Pie component in an object, and set the type of the object to PieProps. Then pass those properties to a Pie component, and you'll get a type error
What is expected?
The PieProps type should match the Pie component props
What is actually happening?
PieProps does not match Pie components props
The text was updated successfully, but these errors were encountered: