Skip to content
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

expect __docgenInfo to be before the HoC call #74

Merged
merged 6 commits into from Oct 24, 2019

Conversation

salmanm
Copy link
Contributor

@salmanm salmanm commented Sep 26, 2019

I think #48 deserves to be re-opened. The problem isn't that it doesn't support HoC, the problem is that the __docgenInfo is set after the HoC call. This doesn't let the HoC wrapper hoist the statics into the parent component and hence even though the __docgenInfo is created, it is hidden underneath the HoC wrapper.

I am opening this PR to start a discussion.

  • Fix the test by adding the __docgenInfo before HoC call

/cc @danielduan @madushan1000

@salmanm
Copy link
Contributor Author

salmanm commented Sep 27, 2019

I've managed to make this change and updated the tests too. Its all green ✅
Let me know what you think.

@povel62
Copy link

povel62 commented Oct 15, 2019

I'm having similar issues and seems like your commits will fix those. Thanks for that.
But do you know when this will be merged. PR's been sitting here for a while. @salmanm

@salmanm
Copy link
Contributor Author

salmanm commented Oct 15, 2019

Yeah, I'm wondering the same. For now I am just using my forked version. Let's hope contributors look at this PR soon.

@danielduan
Copy link
Member

my apologies for the late review, I will take a look at this later today

@danielduan danielduan merged commit fa69d8c into storybookjs:master Oct 24, 2019
@danielduan
Copy link
Member

published as 3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants