[Flight] allow context providers from client modules (#35675)
Allows Server Components to import Context from a `"use client'` module and render its Provider. Only tricky part was that I needed to add `REACT_CONTEXT_TYPE` handling in mountLazyComponent so lazy-resolved Context types can be rendered. Previously only functions, REACT_FORWARD_REF_TYPE, and REACT_MEMO_TYPE were handled. Tested in the Flight fixture. ty bb claude Closes https://github.com/facebook/react/issues/35340 --------- Co-authored-by: Sophie Alpert <git@sophiebits.com>
R
Ricky committed
3e00319b352092949ba146e70829310fe6362062
Parent: 3419420
Committed by GitHub <noreply@github.com>
on 2/3/2026, 3:22:57 PM