upgrading to v8
#28314
Replies: 2 comments 4 replies
-
I also met with this problem and didn't know how to solve it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh I worked it out, just as the guidance provided by storybook official: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#implicit-actions-can-not-be-used-during-rendering-for-example-in-the-play-function, you just have to add explicit add functions you used in the args field, and it will work. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I've upgraded from version 7.6.10 to 8.1.10 and most things are working except one story in which I get the following error:
We detected that you use an implicit action arg while rendering of your story.
(I did keep the
parameters: { actions: { argTypesRegex: '^on[A-Z].*' }, }
setting in thepreview
config)I understood that there was a breaking change around actions, but several things puzzle me:
actions
) except for this one componentactions
tabDo I have to go through all of my components and explicitly set all the actions (and import from
@storybook/test
although I don't use testing)?Additional information
EDIT: I pin pointed the problem to be with an action called
onUnmount
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions