File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/react-client/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -304,22 +304,22 @@ export function processReply(
304
304
) ;
305
305
} else if (objectName(value) !== 'Object') {
306
306
console . error (
307
- 'Only plain objects can be passed to Client Components from Server Components . ' +
307
+ 'Only plain objects can be passed to Server Functions from the Client . ' +
308
308
'%s objects are not supported.%s' ,
309
309
objectName ( value ) ,
310
310
describeObjectForErrorMessage ( parent , key ) ,
311
311
) ;
312
312
} else if (!isSimpleObject(value)) {
313
313
console . error (
314
- 'Only plain objects can be passed to Client Components from Server Components . ' +
314
+ 'Only plain objects can be passed to Server Functions from the Client . ' +
315
315
'Classes or other objects with methods are not supported.%s' ,
316
316
describeObjectForErrorMessage ( parent , key ) ,
317
317
) ;
318
318
} else if (Object.getOwnPropertySymbols) {
319
319
const symbols = Object . getOwnPropertySymbols ( value ) ;
320
320
if ( symbols . length > 0 ) {
321
321
console . error (
322
- 'Only plain objects can be passed to Client Components from Server Components . ' +
322
+ 'Only plain objects can be passed to Server Functions from the Client . ' +
323
323
'Objects with symbol properties like %s are not supported.%s' ,
324
324
symbols [ 0 ] . description ,
325
325
describeObjectForErrorMessage ( parent , key ) ,
You can’t perform that action at this time.
0 commit comments