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

[base] Fix missing ClickAwayListener barrel index export #30000

Merged
merged 3 commits into from
Dec 3, 2021

Conversation

oliviertassinari
Copy link
Member

I was about to update https://stackoverflow.com/questions/32553158/detect-click-outside-react-component/59913572#59913572 to point to https://mui.com/components/click-away-listener/#unstyled which claims to have a smaller bundle size. But unfortunately, I couldn't find it in https://bundlephobia.com/package/@mui/[email protected]. Turns out, it wasn't exported from the barrel index. I have used this opportunity to reorder alphabetically the exports.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work package: base-ui Specific to @mui/base labels Dec 1, 2021
@oliviertassinari
Copy link
Member Author

oliviertassinari commented Dec 1, 2021

A side thought, is this description still accurate?

Screenshot 2021-12-01 at 23 10 24

Shouldn't we say the "base package"? (x all the other instances)

@oliviertassinari
Copy link
Member Author

oliviertassinari commented Dec 1, 2021

If you can upvote my SO answer, it might help as well 🙏 . All the opportunities are good to attract new users 😁

@oliviertassinari oliviertassinari changed the title [base] Add missing ClickAwayListener barrel index export [base] Fix missing ClickAwayListener barrel index export Dec 1, 2021
@mui-pr-bot
Copy link

mui-pr-bot commented Dec 1, 2021

Details of bundle changes

@material-ui/unstyled: parsed: +1.69% , gzip: +1.53%

Generated by 🚫 dangerJS against 5ba2828

@oliviertassinari oliviertassinari force-pushed the export-base-ClickAwayListener branch from bab330f to 6ccc9ff Compare December 1, 2021 22:17
@oliviertassinari oliviertassinari force-pushed the export-base-ClickAwayListener branch from 6ccc9ff to 5ba2828 Compare December 1, 2021 22:17
@michaldudak
Copy link
Member

Shouldn't we say the "base package"? (x all the other instances)

Yes, good point. Adding to my todo list.

@hbjORbj hbjORbj merged commit 22c3401 into mui:master Dec 3, 2021
@oliviertassinari oliviertassinari deleted the export-base-ClickAwayListener branch December 3, 2021 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work package: base-ui Specific to @mui/base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants