Describe the bug
When I change contexts, the component story does not refresh to reflect the change. I have to select a different component for the change to take effect.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the component to immediately reflect the context change.
Code snippets
I'm using createContext from React to maintain state across components. My Context Provider mock alters one parameter the initial state of that component when changing context through the addon.
More information: I added a console.log in my story and in my context:
// context.ts
<ExternalEmbedStateProvider initialState={state}>
<Container>
{console.log('CONTEXT MOCK', state.name)}
{children}
</Container>
</ExternalEmbedStateProvider>
// component.ts
storiesOf('runtime/Footer', module)
.addDecorator(withContexts(contexts))
.add('Footer', () => (
<div style={{ height: 172 }}>
{console.log('re-render')}
<Footer />
</div>
))
In the console, re-render was logged before CONTEXT MOCK.

I will take a look this weekend, thanks!
Hi @leoyli -- I was curious if you'd made any headway, and if I could be of any help?
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!
Did this ever get resolved, still seeing same issue?
FYI, I'm deprecating addon-contexts in 6.0 and have created a new addon, addon-toolbars that achieves the same result in a simple/standard/ergonomic/cross-framework way. If you can upgrade, I highly recommend it:
https://github.com/storybookjs/storybook/tree/next/addons/toolbars