mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Previously, Forget would throw if _any_ of the arguments to a component are modified. This isn't quite right as a ref argument can be modified. This PR assumes the second argument of a component to be a ref and allows it to be mutable. A future PR will add types to this argument so the validateRefAccessDuringRender can catch if ref is mutated in render. This PR contains a todo test for this.