We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d485ce + 91cf68d commit 7b78185Copy full SHA for 7b78185
src/setup-page-script.ts
@@ -284,7 +284,8 @@ async function __getContext(storyId: string): Promise<any> {
284
function isServerComponentError(error: unknown) {
285
return (
286
typeof error === 'string' &&
287
- (error.includes('A component was suspended by an uncached promise.') ||
+ (error.includes('Only Server Components can be async at the moment.') ||
288
+ error.includes('A component was suspended by an uncached promise.') ||
289
error.includes('async/await is not yet supported in Client Components'))
290
);
291
}
0 commit comments