Skip to content

Commit 4efc125

Browse files
committed
Add back temporary experimental_ aliases for Server Actions APIs (#27461)
This adds back the `experimental_`-prefixed Server Actions APIs to the experimental builds only, so that apps that use those don't immediately break when upgrading. The APIs will log a warning to encourage people to move to the unprefixed version, or to switch to the canary release channel. We can remove these in a few weeks after we've given people a chance to upgrade. This does not affect the canary builds at all, since they never had the prefixed versions to begin with. DiffTrain build for [ca237d6](ca237d6)
1 parent 38425e9 commit 4efc125

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
44d40a077ae91bbf5e18a95b90d8a15c2ec978ca
1+
ca237d6f0ab986e799f192224d3066f76d66b73b

compiled/facebook-www/WARNINGS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,10 @@
393393
"unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."
394394
"unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s"
395395
"unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."
396+
"useFormState is now in canary. Remove the experimental_ prefix. The prefixed alias will be removed in an upcoming release."
397+
"useFormStatus is now in canary. Remove the experimental_ prefix. The prefixed alias will be removed in an upcoming release."
396398
"useInsertionEffect must not schedule updates."
399+
"useOptimistic is now in canary. Remove the experimental_ prefix. The prefixed alias will be removed in an upcoming release."
397400
"validateDOMNesting(...): %s cannot appear as a child of <%s>.%s"
398401
"validateDOMNesting(...): %s cannot appear as a descendant of <%s>."
399402
"validateDOMNesting(...): Text nodes cannot appear as a child of <%s>."

0 commit comments

Comments
 (0)