-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot reloading breaks with React Native when having multiple storiesOf
in a single file
#3703
Comments
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! |
I had the same issue |
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! |
I had the same issue |
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! |
I'm having the same issue, is there any fix? |
@michaelduminy, does your PR fix this ? |
@igor-dv I think so. I never noticed it affect multiple |
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! |
Bug or support request summary
Hot reloading breaks with React Native when having multiple
storiesOf
in a single file.After reading through previous issues concerning the "Story of "XXX" named "XXX" already exists" error, I found the following comment
After testing this, it indeed does work when there's only a single
storiesOf(.., ..)
in a file, but when adding another it breaks.Steps to reproduce
Have a React Native project with Storybooks set up, and add a new story file containing 2
storiesOf()
with different naming, for example:Make sure that you have hot reloading enabled, and when editing and saving the story file, the app with give the "Story of "XXX" named "XXX" already exists" error.
Possible solution
What I think could work is if an intermediate method for the dispose method is added, that keeps track of all the callbacks registered, as opposed to Metro bundlers
require
polyfill, that only retains the last callback.Please specify which version of Storybook and optionally any affected addons that you're running
Affected platforms
React Native 0.55.3
The text was updated successfully, but these errors were encountered: