Skip to content

feat(react): backport React 19 ref as prop - #26

Draft
christopher-buss wants to merge 1 commit into
Roblox:mainfrom
christopher-buss:backport-react-19-ref-as-prop
Draft

feat(react): backport React 19 ref as prop#26
christopher-buss wants to merge 1 commit into
Roblox:mainfrom
christopher-buss:backport-react-19-ref-as-prop

Conversation

@christopher-buss

Copy link
Copy Markdown

Summary

Backport React 19's ref-as-prop behavior through the element and reconciler paths from react/react#28348, #28464, and #28719. Preserve legacy forwardRef, class component, and element.ref compatibility while moving ref validation to receiving fibers. Port the complete upstream ReactFiberRefs and ReactClassComponentPropResolution suites plus the classic createElement ref-prop case, with each React-Luau deviation stated beside the translated code.

Generated with Codex.

Port the React 19 element and reconciler changes while preserving legacy forwardRef and class component compatibility. Include direct Luau ports of the upstream test coverage with each platform deviation stated alongside the code.

Co-authored-by: Codex <noreply@openai.com>
@christopher-buss
christopher-buss marked this pull request as draft August 14, 2026 02:41
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.

1 participant