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 was archived by the owner on Nov 14, 2020. It is now read-only.
I'm not sure how we could avoid this, and I've already patched my code to put the state a layer higher than the component definition, but thought I would share.
I have a customized TextInput that saves off a ref of the input on the instance. Renders something like:
<input
ref='input'
label='a string i need translated'
... />
And when that custom component is used with makeLocalizedElement:
I'm not sure how we could avoid this, and I've already patched my code to put the state a layer higher than the component definition, but thought I would share.
I have a customized TextInput that saves off a
refof theinputon the instance. Renders something like:And when that custom component is used with makeLocalizedElement:
I get warned by React that I can't have a
refon the stateless functional component (theLocreturned bymakeLocalizedElement)Could we add something to makeLocalizedElement, maybe a flag, that it would branch on and instead create a stateful component?