dillon1000/react

Commit

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)
Browse files
Changed paths1 file
First-parent comparison
M packages/react-reconciler/src/__tests__/useMemoCache-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…