mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
11f55031dd
Summary: jmbrown215 recently had an observation that the arguments to useState/useRef are only used when a component renders for the first time, and never afterwards. We can skip more computation that we previously could, with reactive blocks that previously recomputed values when inputs changed now only ever computing them on the first render. ghstack-source-id:5d044ef787Pull Request resolved: https://github.com/facebook/react/pull/29653 DiffTrain build for [c69211a9df](https://github.com/facebook/react/commit/c69211a9dfa683038b1a758aba2ca09c7862a6d3)