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
{{ message }}
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.
Presently, there is a divide of sorts when it comes to Materialish refs. If a ref is used internally, then it cannot be used externally. And vice versa.
There are only a few situations when refs are needed internally. But those components do not have a nodeRef prop.
There is a catch: it doesn't support string refs. But that may okay, given the benefits that this API provides, and the fact that string refs are deprecated.
The text was updated successfully, but these errors were encountered:
thinking further about this, not allowing string refs seems especially fine since the prop is nodeRef, they would actually have direct access via this.refs['string'] they would have to attach a direct ref to the materialish node and use this.refs['something'].children.refs['string']
I think calling out lack of support for string refs in nodeRef in docs seems appropriate since above workflow is really poor anyway
Resolved in #277 . This will be released as 0.17.0; possibly tonight or tomorrow. I'm just doing a bit more testing to make sure that everything is good.
Presently, there is a divide of sorts when it comes to Materialish refs. If a ref is used internally, then it cannot be used externally. And vice versa.
There are only a few situations when refs are needed internally. But those components do not have a
nodeRef
prop.@conorhastings proposed a solution to this in #267 (comment) (CodeSandbox Example).
There is a catch: it doesn't support string refs. But that may okay, given the benefits that this API provides, and the fact that string refs are deprecated.
The text was updated successfully, but these errors were encountered: