when form model changes and some refs should be removed, it set value null to corresponding refs keys. Original react string refs removes ref key completely from registry in such cases.
It causes issues in some edge cases, like validation of such updated form (because struct uses hasOwnProperty to determine is ref available).
This PR restores original string refs behaviour with new callback refs.
406 introduced issue with refs management 😢
when form model changes and some refs should be removed, it set value
null
to corresponding refs keys. Original react string refs removes ref key completely from registry in such cases.It causes issues in some edge cases, like validation of such updated form (because struct uses
hasOwnProperty
to determine is ref available).This PR restores original string refs behaviour with new callback refs.