This was reported in our slack channel:
Refs inside a component that's wrapped with forwardRef has a stale ref reference, when the inner component is updated. @cristianbote confirmed that this works fine in React.
For good measure, here's a CodeSandbox showing it works fine in React.
Most helpful comment
For good measure, here's a CodeSandbox showing it works fine in React.