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

Minor imports fixes #9573

Merged
merged 1 commit into from
Jun 17, 2023
Merged

Minor imports fixes #9573

merged 1 commit into from
Jun 17, 2023

Conversation

bhollis
Copy link
Contributor

@bhollis bhollis commented Jun 14, 2023

Some of the imports changes from #9568, specifically changing to individual imports from React and removing some duplicate imports.

@bhollis bhollis requested a review from robojumper June 14, 2023 19:59
@robojumper
Copy link
Member

I don't think I entirely understand the value in some of these, in fact I do like that it's clearly visible that lazy and memo are coming from React and aren't just some utility function, but no real objections from me.

@bhollis
Copy link
Contributor Author

bhollis commented Jun 14, 2023

I think the idea is that if React were ever to become tree-shakable we could limit our usage to only those functions we make use of.

@robojumper
Copy link
Member

Sounds good to me. Any reason not to enable a lint for these together with this PR? Or are we still unsure about eslint-plugin-import in general, even with no-cycle turned off?

@bhollis
Copy link
Contributor Author

bhollis commented Jun 15, 2023

I figure we can enable the import plugin in that other PR, this just got some of the changes out of the way early.

@bhollis bhollis merged commit 89d613c into master Jun 17, 2023
6 checks passed
@bhollis bhollis deleted the imports-minor branch June 17, 2023 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants