Hide new RSC error messages

This commit is contained in:
Kasper Peulen 2025-02-27 12:19:18 +01:00
parent b4d0d00edf
commit b98ebcdb72
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,8 @@ function addNextHeadCount() {
function isAsyncClientComponentError(error: unknown) {
return (
typeof error === 'string' &&
(error.includes('A component was suspended by an uncached promise.') ||
(error.includes('Only Server Components can be async at the moment.') ||
error.includes('A component was suspended by an uncached promise.') ||
error.includes('async/await is not yet supported in Client Components'))
);
}

View File

@ -30,7 +30,8 @@ function addNextHeadCount() {
function isAsyncClientComponentError(error: unknown) {
return (
typeof error === 'string' &&
(error.includes('A component was suspended by an uncached promise.') ||
(error.includes('Only Server Components can be async at the moment.') ||
error.includes('A component was suspended by an uncached promise.') ||
error.includes('async/await is not yet supported in Client Components'))
);
}