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

Bundle library without React #112

Closed
bedrich-schindler opened this issue Jun 18, 2020 · 0 comments · Fixed by #58
Closed

Bundle library without React #112

bedrich-schindler opened this issue Jun 18, 2020 · 0 comments · Fixed by #58
Labels
BC Breaking change bug Something isn't working refactoring
Milestone

Comments

@bedrich-schindler
Copy link
Contributor

In #58, we met problem with duplicate React instances when using hooks. If ReactUI is bundled together with React than consumer meets error that duplicate React instances are found.

Problem should be solved when react and react-dom (it is not necessary, but it reduces bundle size) are marked as external in webpack configuration: https://webpack.js.org/configuration/externals/

@bedrich-schindler bedrich-schindler added bug Something isn't working proposal refactoring BC Breaking change and removed proposal labels Jun 18, 2020
@bedrich-schindler bedrich-schindler added this to the v0.32.0 milestone Jun 18, 2020
@bedrich-schindler bedrich-schindler linked a pull request Jun 18, 2020 that will close this issue
bedrich-schindler added a commit that referenced this issue Jun 19, 2020
adamkudrna pushed a commit that referenced this issue Jun 25, 2020
adamkudrna pushed a commit that referenced this issue Jun 25, 2020
adamkudrna pushed a commit that referenced this issue Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Breaking change bug Something isn't working refactoring
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant