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(
304304 ) ;
305305 } else if (objectName(value) !== 'Object') {
306306 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 . ' +
308308 '%s objects are not supported.%s' ,
309309 objectName ( value ) ,
310310 describeObjectForErrorMessage ( parent , key ) ,
311311 ) ;
312312 } else if (!isSimpleObject(value)) {
313313 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 . ' +
315315 'Classes or other objects with methods are not supported.%s' ,
316316 describeObjectForErrorMessage ( parent , key ) ,
317317 ) ;
318318 } else if (Object.getOwnPropertySymbols) {
319319 const symbols = Object . getOwnPropertySymbols ( value ) ;
320320 if ( symbols . length > 0 ) {
321321 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 . ' +
323323 'Objects with symbol properties like %s are not supported.%s' ,
324324 symbols [ 0 ] . description ,
325325 describeObjectForErrorMessage ( parent , key ) ,
You can’t perform that action at this time.
0 commit comments