You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Button knobs get an extra callback added for each hot reload of Storybook. Many source code changes results in button knob effects getting applied many times.
To Reproduce
Steps to reproduce the behavior:
Set up my minimal stories:
git clone https://github.com/dcecile/storybook-react-ts-knobs.git
cd storybook-react-ts-knobs
yarn install
yarn view
Click a button knob, see increment/decrement by 1
Keeping Storybook running, change a source file, see it hot reload
Click a button knob, see increment/decrement by 2
Repeat for more extra callbacks added with each hot reload
Expected behavior
Always increment/decrement by 1, regardless of number of hot reloading.
Describe the bug
Button knobs get an extra callback added for each hot reload of Storybook. Many source code changes results in button knob effects getting applied many times.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Always increment/decrement by 1, regardless of number of hot reloading.
Screenshots
N/A
Code snippets
System:
Additional context
This bug was exposed once button knobs got fixed for #8165.
The text was updated successfully, but these errors were encountered: