-
-
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
Core: Add skip dispose option to ClientApi #9868
Conversation
cc @tmeasday |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Gongreg I wonder if the option could be called something a bit clearer, maybe noStoryModuleHotDispose
? Also perhaps we could put a comment in around the option explaining the rationale as we are sure to forget why it is there
expect(module.hot.dispose.calls.length).toEqual(2); | ||
}); | ||
|
||
it('should not bind dispose inside add when disableAddStoryDispose is true', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it('should not bind dispose inside add when disableAddStoryDispose is true', () => { | |
it('should not call `module.hot.dispose` inside add when disableAddStoryDispose is true', () => { |
I am having trouble with thinking of the name. This is not fully disabling hot story dispose. This is disabling one of the two dispose calls. It is more of |
I guess what I was thinking is we are keeping the dispose for the kind (in |
That’s correct. |
Co-Authored-By: Tom Coleman <[email protected]>
…ook into client-api-hot-refresh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, WFM.
Sorry to leave comments on old PR's but these changes are part of the fast refresh fix for react native storybookjs/react-native#30 any chance we could see this in another 5.3.x patch? |
Core: Add skip dispose option to ClientApi
Issue: storybookjs/react-native#11
What I did
Added an option to skip dispose call inside storiesOf.add() .
Relevant PR:
storybookjs/react-native#30
How to test
Added tests.