[Bug]: Storybook requires restart after adding afterQuery
Cell hook
#11742
Labels
bug/needs-info
More information is needed for reproduction
afterQuery
Cell hook
#11742
How do we reproduce the bug?
Prerequisites:
yarn rw sb
export const afterQuery(data) => {console.log('VAPOR LOG MSG'); return data}
export const standard = () => mockGraphQLQuery(…
instead ofexport const standard = () => afterQuery(mockGraphQLQuery(…
Reloading (F5) the whole storybook in the browser also won't help.
Same issue when looking at the Cell's success story.
Suggested root cause / fix
Adding an
afterQuery
hook apparently does not trigger regeneration of the mock file, hence this is probably also the fix.Side notes
The console shows
on any change to the afterQuery hook.
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: