DEV Community

Discussion on: A Concurrent Mode-Safe Version of useRef

Collapse
 
poeticgeek profile image
Yoav Niran

Very interesting. This might be a naive question, but shouldn't React provide this "safety" as part of the useRef hook? Don't think React users should be in charge of doing this as most will not even be aware of the issue until they need to troubleshoot very obscure bugs...