mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +00:00
[Flight] Delete Server Context (#28225)
Server Context was never documented, and has been deprecated in https://github.com/facebook/react/pull/27424. This PR removes it completely, including the implementation code. Notably, `useContext` is removed from the shared subset, so importing it from a React Server environment would now should be a build error in environments that are able to enforce that.
This commit is contained in:
@@ -486,5 +486,7 @@
|
||||
"498": "Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.",
|
||||
"499": "Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.",
|
||||
"500": "React expected a headers state to exist when emitEarlyPreloads was called but did not find it. This suggests emitEarlyPreloads was called more than once per request. This is a bug in React.",
|
||||
"501": "The render was aborted with postpone when the shell is incomplete. Reason: %s"
|
||||
"501": "The render was aborted with postpone when the shell is incomplete. Reason: %s",
|
||||
"502": "Cannot read a Client Context from a Server Component.",
|
||||
"503": "Cannot use() an already resolved Client Reference."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user