We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d1b057 commit 36c908aCopy full SHA for 36c908a
packages/react-server/src/ReactFlightHooks.js
@@ -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');
+ console.error(
30
+ 'Only createServerContext is supported in Server Components.',
31
+ );
32
}
33
if (currentCache === null) {
34
console.error(
0 commit comments