Skip to content

feat(react): backport insertion and Effect Event hooks - #28

Draft
christopher-buss wants to merge 1 commit into
Roblox:mainfrom
christopher-buss:backport-react-19-2-use-effect-event
Draft

feat(react): backport insertion and Effect Event hooks#28
christopher-buss wants to merge 1 commit into
Roblox:mainfrom
christopher-buss:backport-react-19-2-use-effect-event

Conversation

@christopher-buss

@christopher-buss christopher-buss commented Aug 31, 2026

Copy link
Copy Markdown

Summary

Backport React 18's useInsertionEffect mutation-phase semantics and React 19.2's useEffectEvent commit-safe callback semantics. Add public and dispatcher APIs, reconciler commit behavior, Debug Tools inspection, and upstream-ordered Jest-Lua coverage. Include pinned source and test ledgers with explicit React-Luau capability boundaries and deviations.

Verification

  • repository-pinned StyLua 0.18.1: full tree passes
  • Selene 0.28.0: all changed Luau files pass with zero errors or warnings
  • Luau 0.731: all changed Luau files compile
  • Roblox Studio, hardened public dependency aliases at head 8e0a62c22cebcd6b66cdd8d34e7ee93daa96ad33 / tree 5360be0f:
    • package identity: 1 passed, 0 failed
    • React Hooks Inspection: 15 passed, 5 pre-existing skipped, 0 failed
    • useEffectEvent: 14 passed, 0 failed
    • useInsertionEffect: 7 passed, 0 failed
    • combined focused suites: 36 passed, 5 skipped, 0 failed
  • immutable verification hashes:
    • archive SHA-256: A127D0C8FF96273612E30FF21543AD6F57EE92ADACB4B4C76BCFD19D73A7F57D
    • project SHA-256: 0C8BF52F4B5901B129E4882E2903CAC0412D6E403F8328269EE624D973DAB50B
    • config SHA-256: 42E12A0CAE56B80C92334E9CC19A85DA514B8AB6C8D7F38C83A43BAC64BEA81D
    • focused Jest result SHA-256: A821318C28E7053619A4D937802C8A1DF91B7176678AAED13F036237088494AE
  • git diff --check: passes
  • bash bin/testing.sh: standalone runner remains unavailable because roblox-cli is not installed

Generated with Codex.

@christopher-buss
christopher-buss marked this pull request as draft August 31, 2026 16:08
@christopher-buss
christopher-buss force-pushed the backport-react-19-2-use-effect-event branch from a255ffc to 0388ee5 Compare August 31, 2026 22:47
Mirror React 18 useInsertionEffect and React 19.2 useEffectEvent, including commit ordering, Debug Tools support, DEV validation, and upstream-derived coverage.

Co-authored-by: Codex <noreply@openai.com>
@christopher-buss
christopher-buss force-pushed the backport-react-19-2-use-effect-event branch from 0388ee5 to 646a31b Compare September 1, 2026 01:41
@christopher-buss
christopher-buss force-pushed the backport-react-19-2-use-effect-event branch 2 times, most recently from 472d35e to 8e0a62c Compare September 6, 2026 17:20
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