[Storybook]: "forceReRender" event does not appear to function #8395
Labels
dev: research
dev
Needs some dev work
follow-up: DDS engineering
inactive
package: web components
Work necessary for the IBM.com Library web components package
storybook
Summary
Storybook exposes a "forceReRender" event/option in its client API, and it looks like we have attempted to use it in the web components package's Storybook configuration to re-render stories when the "Carbon theme" input value changes (see https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/packages/web-components/.storybook/config.ts#L86-L92).
From what I can tell, emitting this event doesn't actually trigger anything within Storybook, and the story contents are not re-rendered. Some searching shows others have found the same issue (albeit in other Storybook flavors):
I'm interested in this since it may help us resolve some bugs that occur when knobs are updated but the web components are not re-rendered.
Does anyone know if we are using this part of the API correctly?
Relevant information
No response
Name and organization
John Kaeser
Front End Developer @ Lullabot
Code of Conduct
The text was updated successfully, but these errors were encountered: