mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +00:00
Fix: Resolve entangled actions independently (#26726)
When there are multiple async actions at the same time, we entangle them together because we can't be sure which action an update might be associated with. (For this, we'd need AsyncContext.) However, if one of the async actions fails with an error, it should only affect that action, not all the other actions it may be entangled with. Resolving each action independently also means they can have independent pending state types, rather than being limited to an `isPending` boolean. We'll use this to implement an upcoming form API.
This commit is contained in:
@@ -462,5 +462,6 @@
|
||||
"474": "Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.",
|
||||
"475": "Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.",
|
||||
"476": "Expected the form instance to be a HostComponent. This is a bug in React.",
|
||||
"477": "React Internal Error: processHintChunk is not implemented for Native-Relay. The fact that this method was called means there is a bug in React."
|
||||
"477": "React Internal Error: processHintChunk is not implemented for Native-Relay. The fact that this method was called means there is a bug in React.",
|
||||
"478": "Thenable should have already resolved. This is a bug in React."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user