Support React 19 `use`
React 19 provided the use function to consume promise directly. Does relay intend to provide option to return promise from hooks instead of suspending?
I suspect our use of use will be simply as an implementation detail to
replace throwing a promise. Is there something specific you were hoping to
achieve by having direct access to the promise and being able to use it
yourself?
Jordan Eldredge
jordaneldredge.com
On Mon, Jun 9, 2025 at 8:41 PM Tiến Nguyễn Khắc @.***> wrote:
tien created an issue (facebook/relay#5016) https://github.com/facebook/relay/issues/5016
React 19 provided the use function to consume promise directly. Does relay intend to provide option to return promise from hooks instead of suspending?
— Reply to this email directly, view it on GitHub https://github.com/facebook/relay/issues/5016, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABHXLZ6QMDL4GMZJODAEWD3CZHVLAVCNFSM6AAAAAB66PL24KVHI2DSMVQWIX3LMV43ASLTON2WKOZTGEZTEMBUGE2DGMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Nothing specific that I've in mind tbh, I'm just curious as to how you guys would utilise the new API 👀