Open Jakob-em opened 3 years ago
I’m only using @storybook/addon-essentials
and still see the error.
Running Storybook 6.3.6. The error:
Warning: React has detected a change in the order of Hooks called by Tabs. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
Previous render Next render
------------------------------------------------------
1. useContext useState
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Still an issue for me as well.
"@storybook/addons" "6.4.20"
"@storybook/api" "6.4.20"
"@storybook/components" "6.4.20"
"@storybook/core-events" "6.4.20"
"@storybook/csf" "0.0.2--canary.87bc651.0"
"@storybook/theming" "6.4.20"
"@storybook/addon-actions": "^6.4.19",
"@storybook/addon-essentials": "^6.4.19",
"@storybook/addon-interactions": "^6.4.19",
"@storybook/addon-links": "^6.4.19",
"@storybook/builder-webpack5": "^6.4.19",
"@storybook/manager-webpack5": "^6.4.19",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^6.4.19",
"@storybook/testing-library": "^0.0.9",
Looks like @storybook/addon-actions
is the one causing the issue. If I disable it from the addons-essentials
plugin it stops throwing this error.
# main.js
addons: [
{
name: '@storybook/addon-essentials',
options: {
actions: false,
},
},
],
I have the same issue with controls: {disable: true}
using @storybook/addon-essentials
on Storybook 6.5.14
The fix of @orlando is working but not useful, because action is globally disabled.
Experiencing the same issue as well (Storybook-html 6.5.14
and @storybook/addon-essentials
) . It is possible to disable actions for separate stories though, so that action is not globally disabled.
Just add options: { actions: false }
to your story's parameters:
export default {
title: 'Stories/myComponent,
component: 'myComponent',
parameters: {
options: { actions: false },
}
cc @Cedric-ruiu
Describe the bug When using
controls: {disable: true}
in the parameters of a story, the following warning message shows up in the browser console:To Reproduce npx sb@next repro
Replace "@storybook/addon-essentials" in main.js with "@storybook/addon-docs", "@storybook/addon-controls", "@storybook/addon-actions",
Add
controls: {disable: true}
to the parameters of the Button StoryReload Button story page and watch the browser console.
System
Additional context I could only reproduce this when importing "@storybook/addon-docs", "@storybook/addon-controls" and "@storybook/addon-actions" instead of "@storybook/addon-essentials" so just importing "@storybook/addon-essentials" is a good workaround.