@samitouri / QOS-React-2 / commits / 36c908a6c8

Don't use the Flight terminology in public error messages (#25166)

Sebastian Markbåge committed Aug 31, 2022 at 23:07 UTC 36c908a6c85f271358ef91936df6ded18bbc6789
1 file changed +3 -1
packages/react-server/src/ReactFlightHooks.js
+3 -1
@@ -26,7 +26,9 @@ export function resetHooksForRequest() {
26 function readContext<T>(context: ReactServerContext<T>): T {
27 if (__DEV__) {
28 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 + );
32 }
33 if (currentCache === null) {
34 console.error(