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
When used in a React 16 context, the final component (the result of uncontrollable(MyComp)) has the rather opaque name ForwardRef (demo: https://r4qeq.codesandbox.io/)
When used in a React 16 context, the final component (the result of
uncontrollable(MyComp)
) has the rather opaque nameForwardRef
(demo: https://r4qeq.codesandbox.io/)If you find it worth the effort, I could submit a tiny PR giving a display name to the function passed to
forwardRef
(https://github.com/jquense/uncontrollable/blob/master/src/uncontrollable.js#L122-L124), hence renaming the final component to something likeForwardRef(myFunctionName)
. ThedisplayName
variable (https://github.com/jquense/uncontrollable/blob/master/src/uncontrollable.js#L6) could be used for this.Thank you for this library (and many others)!
The text was updated successfully, but these errors were encountered: