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

[core] Add useEnhancedEffect module #22317

Merged
merged 5 commits into from Aug 24, 2020

Conversation

oliviertassinari
Copy link
Member

The helper is duplicated 14 times in the codebase. After mui/mui-x#188, It felt that it was time to abstract it.

@oliviertassinari oliviertassinari added the core Infrastructure work going on behind the scenes label Aug 22, 2020
@oliviertassinari oliviertassinari changed the title [core] Add useEnhancedEffect [core] Add useEnhancedEffect module Aug 22, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Aug 22, 2020

Details of bundle changes

Generated by 🚫 dangerJS against f7886ff

Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not be a public, stable utility. The problem space is not solved yet and this merely a workaround. Making this public will cause us trouble in the future. If somebody needs to use this then we can think about it. But simply because we use it does not mean it should be a public utility.

packages/material-ui/src/utils/useEnhancedEffect.js Outdated Show resolved Hide resolved
@oliviertassinari oliviertassinari merged commit 49949e6 into mui:next Aug 24, 2020
@oliviertassinari oliviertassinari deleted the useEnhancedEffect branch August 24, 2020 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants