mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 19:01:05 +08:00
Add a note
This commit is contained in:
parent
b68f6d39fc
commit
b0dda030f3
@ -73,7 +73,8 @@ export function prepareStory<TFramework extends AnyFramework>(
|
||||
...(storyAnnotations.loaders || []),
|
||||
];
|
||||
|
||||
// TODO make a note about what's happening here
|
||||
// The render function on annotations *has* to be an `ArgsStoryFn`, so when we normalize
|
||||
// CSFv1/2, we use a new field called `userStoryFn` so we know that it can be a LegacyStoryFn
|
||||
const render =
|
||||
storyAnnotations.userStoryFn ||
|
||||
storyAnnotations.render ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user