Skip to content

Conversation

@leeguooooo
Copy link

Summary

  • Track the thenable thrown by React.lazy with the same bookkeeping as use(), preventing short-lived promises from being missed.
  • Retry lazy initialization after instrumentation to resolve synchronously when possible.

How did you test this change?

  • yarn test ReactLazy-test.internal

Fixes #35399

@meta-cla meta-cla bot added the CLA Signed label Dec 29, 2025
@leeguooooo leeguooooo force-pushed the fix-35399-lazy-thenable-race branch from 3b3cfe6 to 46604ca Compare December 29, 2025 03:06
@leeguooooo leeguooooo marked this pull request as ready for review December 29, 2025 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: resolveLazy catching promises causes race condition with short-lived Suspense-wrapped components

1 participant