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

[docs] Convert SideEffects to hooks #16197

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Jun 12, 2019

Also moves persistence and tracking into a single place. IMO those things should always listen to committed changes not to queued changes i.e. submit a tracking event after the store value changed (and async) not before (and in sync).

Switching the code variant is now async instead of sync. If we want to display TS (navigation or cookie) you will get a flash of content anyway. Since the demos are most of the time hidden we can deprioritize them.

@eps1lon eps1lon added the docs Improvements or additions to the documentation label Jun 12, 2019
@mui-pr-bot
Copy link

Details of bundle changes.

Comparing: cddc4cf...e0d348c

bundle parsed diff gzip diff prev parsed current parsed prev gzip current gzip
@material-ui/core 0.00% 0.00% 318,722 318,722 87,596 87,596
@material-ui/core/Paper 0.00% 0.00% 68,349 68,349 20,370 20,370
@material-ui/core/Paper.esm 0.00% 0.00% 61,642 61,642 19,172 19,172
@material-ui/core/Popper 0.00% 0.00% 28,966 28,966 10,414 10,414
@material-ui/core/Textarea 0.00% 0.00% 5,513 5,513 2,370 2,370
@material-ui/core/TrapFocus 0.00% 0.00% 3,755 3,755 1,581 1,581
@material-ui/core/styles/createMuiTheme 0.00% 0.00% 16,016 16,016 5,821 5,821
@material-ui/core/useMediaQuery 0.00% 0.00% 2,529 2,529 1,088 1,088
@material-ui/lab 0.00% 0.00% 139,044 139,044 42,787 42,787
@material-ui/styles 0.00% 0.00% 51,769 51,769 15,344 15,344
@material-ui/system 0.00% 0.00% 14,926 14,926 4,269 4,269
Button 0.00% 0.00% 84,337 84,337 25,711 25,711
Modal 0.00% 0.00% 20,343 20,343 6,682 6,682
colorManipulator 0.00% 0.00% 3,904 3,904 1,544 1,544
docs.landing 0.00% 0.00% 55,232 55,232 13,947 13,947
docs.main -0.02% -0.02% 650,888 650,786 204,998 204,961
packages/material-ui/build/umd/material-ui.production.min.js 0.00% 0.00% 292,119 292,119 83,462 83,462

Generated by 🚫 dangerJS against e0d348c

@eps1lon eps1lon marked this pull request as ready for review June 13, 2019 08:30
@eps1lon eps1lon merged commit 313e3e7 into mui:master Jun 13, 2019
@eps1lon eps1lon deleted the docs/persist-middleware branch June 13, 2019 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants