mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Hide new RSC error messages
This commit is contained in:
parent
b4d0d00edf
commit
b98ebcdb72
@ -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'))
|
||||
);
|
||||
}
|
||||
|
@ -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'))
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user