Skip to content

fix(fiber): serialize async renderer configuration#3765

Open
raashish1601 wants to merge 1 commit into
pmndrs:masterfrom
raashish1601:codex/3752-webgpu-init-race
Open

fix(fiber): serialize async renderer configuration#3765
raashish1601 wants to merge 1 commit into
pmndrs:masterfrom
raashish1601:codex/3752-webgpu-init-race

Conversation

@raashish1601

@raashish1601 raashish1601 commented May 14, 2026

Copy link
Copy Markdown

Summary

Fixes #3752.

Serializes overlapping root.configure() calls so a slow async renderer initialization cannot start multiple renderer factories for the same root. Later configuration still runs after the pending setup resolves, so the latest size wins before rendering.

Validation

  • corepack yarn jest packages/fiber/tests/renderer.test.tsx --runInBand
  • .\node_modules\.bin\eslint.cmd packages/fiber/src/core/renderer.tsx packages/fiber/tests/renderer.test.tsx (exits 0; existing warning-class output remains)
  • corepack yarn prettier --check packages/fiber/src/core/renderer.tsx packages/fiber/tests/renderer.test.tsx
  • corepack yarn typecheck
  • corepack yarn validate
  • git diff --check origin/master...HEAD

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b0aefec:

Sandbox Source
example Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data races when using WebGPU

1 participant