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

fix: add hoist-non-react-statics #111

Merged
merged 1 commit into from
Apr 8, 2019
Merged

fix: add hoist-non-react-statics #111

merged 1 commit into from
Apr 8, 2019

Conversation

ds009
Copy link
Contributor

@ds009 ds009 commented Apr 6, 2019

the withSnackbar HOC doesn't copy non-react specific statics from component to the wrapper, it may introduce bugs. For example, when using next.js page component has static method getInitialProps, it should be called each time a page is requested, but when using withSnackbar HOC, this function is no more called.

@iamhosseindhv iamhosseindhv merged commit cdeb8cc into iamhosseindhv:master Apr 8, 2019
@iamhosseindhv
Copy link
Owner

Well done @ds009 ❤️

@ds009
Copy link
Contributor Author

ds009 commented Apr 11, 2019

@iamhosseindhv Hello, could you publish a new version according to this change? Thanks for your awesome notistack project

@iamhosseindhv
Copy link
Owner

New version (v0.7.0) has been released @ds009. Thanks for your patience and happy to hear library has been useful. ❤️

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.

2 participants