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
Hey guys, Version: 5.2.6
I'm having some issues with a button knob, but I don't really know to which open or closed issue i should append it - or just make a new one.
Related issues: #6675 #1736 (comment)
#8614
I tried to implement a refresh knob decorator similar to #1736 (comment)
exportdefault{decorators: [withKnobs,Story=>{const[key,refresh]=useReducer(i=>++i,0);button("Refresh",refresh/** or forceRerender or just () => {} **/);console.log("render");return<Storykey={key}/>},],}
The first click on the knob forces two rerenders of the component. #6675 addressed rerenders on html stories on button knob click, but should have been resolved in 5.1
Every further click on the knob doesn't cause any reaction.
#8614 takes care of knobs fireing only once, but i'm not sure whether the story reload is related to it or got reintroduced on another note.
The text was updated successfully, but these errors were encountered:
Okay, after some more experimenting, I think I'll wait for #8614 being resolved first. I assume, the page reload is in most part related to the knobs fireing or not fireing.
Hey guys,
Version: 5.2.6
I'm having some issues with a button knob, but I don't really know to which open or closed issue i should append it - or just make a new one.
Related issues:
#6675
#1736 (comment)
#8614
I tried to implement a refresh knob decorator similar to #1736 (comment)
The first click on the knob forces two rerenders of the component.
#6675 addressed rerenders on html stories on button knob click, but should have been resolved in 5.1
Every further click on the knob doesn't cause any reaction.
#8614 takes care of knobs fireing only once, but i'm not sure whether the story reload is related to it or got reintroduced on another note.
The text was updated successfully, but these errors were encountered: