-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Fix Algolia top level duplication #15738
Conversation
78b6ba6
to
ce0ce7e
Compare
ce0ce7e
to
3335ce3
Compare
Details of bundle changes.Comparing: ffffcb2...5592401
|
Where is the value in that? It's a little helper component that isn't really useful on its own. |
@eps1lon It's a good question. I believe these downloads https://npm-stat.com/charts.html?package=react-outside-click-handler stats show that there is a use case for such a component. In an ideal world, I would document the bundle size of all the modules: https://twitter.com/olivtassinari/status/1023228214762725377. |
I doubt anybody is installing |
I hope so, we are the best positioned to provide it.
Why would it create an overhead? This change is about transparency. |
Well I view the tracking more of a "caution! increases should be re-evaluated". The transparency part is already given with the stats.json build artifacts. If you just want to add this so that it's easier inspectable we should put this on hold. I have other ideas about inspecting sizes of individual component (sets). |
Ok, I'm revering. https://stackoverflow.com/questions/32553158/detect-click-outside-react-component 150k views, it's a common problem. |
47fe8c5
to
5592401
Compare
No 😢 |
const openImmediately = Boolean( | ||
page.subheader || activePage.pathname.indexOf(`${page.pathname}/`) === 0, | ||
); | ||
const topLevel = activePage.pathname.indexOf(`${page.pathname}/`) === 0; |
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's here.
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.
Should I take care of it?
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.
I'm on it.
@material-ui/core/ClickAwayListener +Infinity% 🔺 +Infinity% 🔺 0 3,586 0 1,477