Skip to content

Commit c43e29b

Browse files
committed
Update Portal error message
1 parent dde875d commit c43e29b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/react-server/src/ReactFizzServer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,11 @@ function renderNodeDestructive(
986986
return;
987987
}
988988
case REACT_PORTAL_TYPE:
989-
throw new Error('Not yet implemented node type.');
989+
invariant(
990+
false,
991+
'Portals are not currently supported by the server renderer. ' +
992+
'Render them conditionally so that they only appear on the client render.',
993+
);
990994
case REACT_LAZY_TYPE:
991995
throw new Error('Not yet implemented node type.');
992996
}

0 commit comments

Comments
 (0)