mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Fizz] Allow an action provide a custom set of props to use for progressive enhancement (#26749)
Stacked on top of #26735. This allows a framework to add a `$$FORM_ACTION` property to a function. This lets the framework return a set of props to use in place of the function but only during SSR. Effectively, this lets you implement progressive enhancement of form actions using some other way instead of relying on the replay feature. This will be used by RSC on Server References automatically by convention in a follow up, but this mechanism can also be used by other frameworks/libraries.
This commit is contained in:
@@ -464,5 +464,6 @@
|
||||
"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.",
|
||||
"478": "Thenable should have already resolved. This is a bug in React.",
|
||||
"479": "Cannot update optimistic state while rendering."
|
||||
"479": "Cannot update optimistic state while rendering.",
|
||||
"480": "File/Blob fields are not yet supported in progressive forms. It probably means you are closing over binary data or FormData in a Server Action."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user