You can pass sub-classed Promises to React such as in use() with the fields status and value or reason.
This allows React synchronously read the value without waiting on a microtask. This is much faster but it also ensures compat when someone needs flushSync().
Microtasks are bad, mkay.
This has been the biggest feature request against Promises since the beginning of time. And all the information is right there!
And the shape of the information exposed is already spec:ed in allSettled!
Mar 21, 2025 14:30Well, with one exception. It doesn't have a pending status. We went with `.status = "pending"` for that.