mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
af1aa8d0d3
Extends `@enablePreserveExistingMemoization` to validate that all of the original values were actually memoized. This works nearly identically to how we validate effect deps are memoized. We look for Memoize instructions whose values need memoization but whose range extends past the memoize instruction, or where the value isn't memoized at all.