From e77ccb593e441aaffc08d1f2cdbd66d890f60262 Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Wed, 22 Mar 2023 12:55:15 +1100 Subject: [PATCH] Exclude decorators by default. Due to reordering in https://github.com/storybookjs/storybook/pull/21182 the source decorator comes *before* any user decorator in `preview.js`. This means that we commonly trigger the bug in #21649. Really it makes more sense to default this to true and people can opt out in cases where they want to show the decorator. --- code/addons/docs/src/preview.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/addons/docs/src/preview.ts b/code/addons/docs/src/preview.ts index 0d1183bd0cf1..22712de48159 100644 --- a/code/addons/docs/src/preview.ts +++ b/code/addons/docs/src/preview.ts @@ -4,5 +4,8 @@ export const parameters: any = { const { DocsRenderer } = (await import('./DocsRenderer')) as any; return new DocsRenderer(); }, + source: { + excludeDecorators: true, + }, }, };