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

Should not export functions that are not imported #27222

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

gnoff
Copy link
Collaborator

@gnoff gnoff commented Aug 13, 2023

These functions are not imported anywhere and should have not been exported to begin with

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Aug 13, 2023
@gnoff gnoff requested a review from sebmarkbage August 13, 2023 04:42
@gnoff gnoff mentioned this pull request Aug 13, 2023
@react-sizebot
Copy link

Comparing: 1a001da...4ca8268

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 164.32 kB 164.32 kB = 51.76 kB 51.76 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 171.74 kB 171.74 kB = 53.97 kB 53.98 kB
facebook-www/ReactDOM-prod.classic.js = 567.12 kB 567.12 kB = 100.09 kB 100.09 kB
facebook-www/ReactDOM-prod.modern.js = 550.92 kB 550.92 kB = 97.25 kB 97.25 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 4ca8268

@gnoff gnoff merged commit 5ad8ef5 into facebook:main Aug 14, 2023
@gnoff gnoff deleted the float-export-fixes branch August 14, 2023 17:06
gnoff added a commit that referenced this pull request Aug 14, 2023
stacked on #27222 

When I initially developed Float I was trying to be extremely clever in
how to explain when there are mismatching Resource instances. I still
think that we should do some kind of validation here but I want to
implement something much simpler. In practice there are not many cases
where you would accidentally create the same resource twice but with
differing props. Since I am going to land `preloadModule` and
`preinitModule` soon and I want to avoid adding to the overly complex
dev validation there I am going to remove it now and add something later
that is simplified.
github-actions bot pushed a commit that referenced this pull request Aug 14, 2023
These functions are not imported anywhere and should have not been
exported to begin with

DiffTrain build for [5ad8ef5](5ad8ef5)
github-actions bot pushed a commit that referenced this pull request Aug 14, 2023
stacked on #27222

When I initially developed Float I was trying to be extremely clever in
how to explain when there are mismatching Resource instances. I still
think that we should do some kind of validation here but I want to
implement something much simpler. In practice there are not many cases
where you would accidentally create the same resource twice but with
differing props. Since I am going to land `preloadModule` and
`preinitModule` soon and I want to avoid adding to the overly complex
dev validation there I am going to remove it now and add something later
that is simplified.

DiffTrain build for [5ea1397](5ea1397)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
These functions are not imported anywhere and should have not been
exported to begin with
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
stacked on facebook#27222 

When I initially developed Float I was trying to be extremely clever in
how to explain when there are mismatching Resource instances. I still
think that we should do some kind of validation here but I want to
implement something much simpler. In practice there are not many cases
where you would accidentally create the same resource twice but with
differing props. Since I am going to land `preloadModule` and
`preinitModule` soon and I want to avoid adding to the overly complex
dev validation there I am going to remove it now and add something later
that is simplified.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
These functions are not imported anywhere and should have not been
exported to begin with

DiffTrain build for commit 5ad8ef5.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
stacked on #27222

When I initially developed Float I was trying to be extremely clever in
how to explain when there are mismatching Resource instances. I still
think that we should do some kind of validation here but I want to
implement something much simpler. In practice there are not many cases
where you would accidentally create the same resource twice but with
differing props. Since I am going to land `preloadModule` and
`preinitModule` soon and I want to avoid adding to the overly complex
dev validation there I am going to remove it now and add something later
that is simplified.

DiffTrain build for commit 5ea1397.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants