dillon1000/react
Commit
Browse files Update useMemoCache test to confirm that cache persists across errors (#26510)
## Summary Updates the `useMemoCache()` tests to validate that the memo cache persists when a component does a setState during render or throws during render. Forget's compilation output follows the general pattern used in this test and is resilient to rendering running partway and then again with different inputs. ## How did you test this change? `yarn test` (this is a test-only change)
Changed paths1 file
First-parent comparisonpackages/react-reconciler/src/__tests__/useMemoCache-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…