Skip to content

Minor imports fixes#9573

Merged
bhollis merged 1 commit intomasterfrom
imports-minor
Jun 17, 2023
Merged

Minor imports fixes#9573
bhollis merged 1 commit intomasterfrom
imports-minor

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
@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.

2 participants