Skip to content

Commit

Permalink
Allow an action provide a custom set of props to use for progressive …
Browse files Browse the repository at this point in the history
…enhancement (#26749)

Summary:
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.

DiffTrain build for commit facebook/react@559e83a.

Changelog: [Internal]

<< DO NOT EDIT BELOW THIS LINE >>

Reviewed By: sammy-SC

Differential Revision: D45454355

Pulled By: tyao1

fbshipit-source-id: 4b4b65c77ecbc113a79e51e4aff97b2e3b88c31a
  • Loading branch information
sebmarkbage authored and facebook-github-bot committed May 4, 2023
1 parent de78fbf commit a89b572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/Renderer/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
67f4fb02130b1fe1856289e3b66bb0b8cca57ff7
559e83aebb2026035d47aa0ebf842f78d4cd6757

0 comments on commit a89b572

Please sign in to comment.