-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Hotfix] Seeing knobs from previously selected story #45
[Hotfix] Seeing knobs from previously selected story #45
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I have confirmed that this fixes the issue! When will this be released? |
Is there any intention to merge this? |
Not sure I don't think they are maintaining this anymore unfortunately. But I forked and implemented the fix if you want it. |
@JReinhold To be clear, we discussed this issue in #48, but I did not include this fix in my changes, so I think this is still worth merging/releasing. Here's a before/after in SB7 if it helps gain confidence. |
@JReinhold any plans to make another release? This wasn't included in 7.0.0 :( |
We should also make dependencies looser before making a new release. |
sorry folks, something got messed up in the automation flow. This should now be released in 7.0.2, along with the looser dependencies. https://github.com/storybookjs/addon-knobs/releases/tag/v7.0.2 |
@mgameover @literalpie |
@JReinhold Could you please help to release the fix for @storybook/addon-knobs v6.4.0? |
@JReinhold |
I no longer maintain this addon. @literalpie has been keeping it afloat, maybe he's interested in backporting, maybe not. |
Hi @AlexSkrypnyk this repo isn't set up to do backporting, but since this is a one-line change you could probably get what you need using patch-package (or the similar tools built in to pnpm and modern yarn). The change will be on line 87 of Hope this helps! |
Original issue: #19
Short description:
In Storybook v6.4
disconnectCallbacks
is invoked beforeSTORY_CHANGED
event has been emitted. As the result the knobs are not being reset.Fix: reset knobs in
disconnectCallbacks
function.