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
{{ message }}
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.
The runBefore property is really great.
However, sometimes the code in this part can get a bit long and complicated, and I wonder if there's a way to debug it.
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for raising this and sorry for the late response.
We will consider adding something for debugging this and update, until then I suggest doing the following:
open you're storybook in chrome
select your story
open Dev tools
switch console iframe to "storybook-preview-iframe" (in console frame select) - this is you're story's frame.
run the following : either by pasting to console or adding a snippet (sources -> add snippet)
const rootEl = document.getElementById('root')
const story = __STORYBOOK_CLIENT_API__.raw().find(s => s.id === __STORYBOOK_STORY_STORE__.getSelection().storyId)
// now run your runBefore function:
runBefore({rootEl, story})
Hey,
The
runBefore
property is really great.However, sometimes the code in this part can get a bit long and complicated, and I wonder if there's a way to debug it.
Thanks
The text was updated successfully, but these errors were encountered: