Skip to content

Commit

Permalink
Don't use the Flight terminology in public error messages (#25166)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Sep 1, 2022
1 parent 8d1b057 commit 36c908a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-server/src/ReactFlightHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export function resetHooksForRequest() {
function readContext<T>(context: ReactServerContext<T>): T {
if (__DEV__) {
if (context.$$typeof !== REACT_SERVER_CONTEXT_TYPE) {
console.error('Only ServerContext is supported in Flight');
console.error(
'Only createServerContext is supported in Server Components.',
);
}
if (currentCache === null) {
console.error(
Expand Down

0 comments on commit 36c908a

Please sign in to comment.