Skip to content

Commit 36c908a

Browse files
authored
Don't use the Flight terminology in public error messages (#25166)
1 parent 8d1b057 commit 36c908a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-server/src/ReactFlightHooks.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export function resetHooksForRequest() {
2626
function readContext<T>(context: ReactServerContext<T>): T {
2727
if (__DEV__) {
2828
if (context.$$typeof !== REACT_SERVER_CONTEXT_TYPE) {
29-
console.error('Only ServerContext is supported in Flight');
29+
console.error(
30+
'Only createServerContext is supported in Server Components.',
31+
);
3032
}
3133
if (currentCache === null) {
3234
console.error(

0 commit comments

Comments
 (0)