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

Cleanup unused unstable_startTransition, unstable_useTransition, unstable_useDeferredValue exports from fb packages #27056

Merged
merged 3 commits into from
Jul 5, 2023

Conversation

noahlemen
Copy link
Member

Summary

came across these TODOs – an internal grep indicated that remaining callsites have been cleaned up, so these can now be removed.

How did you test this change?

yarn flow dom-browser
yarn test

@noahlemen noahlemen marked this pull request as ready for review July 5, 2023 15:15
@react-sizebot
Copy link

react-sizebot commented Jul 5, 2023

Comparing: 035a41c...78b2829

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.35 kB 164.35 kB = 51.76 kB 51.76 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 171.76 kB 171.76 kB = 53.98 kB 53.98 kB
facebook-www/ReactDOM-prod.classic.js = 567.22 kB 567.22 kB = 100.04 kB 100.04 kB
facebook-www/ReactDOM-prod.modern.js = 551.02 kB 551.02 kB = 97.21 kB 97.21 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/React-profiling.classic.js = 21.62 kB 21.37 kB = 5.38 kB 5.34 kB
facebook-www/React-profiling.modern.js = 21.33 kB 21.08 kB = 5.31 kB 5.26 kB
facebook-react-native/react/cjs/React-profiling.js = 21.06 kB 20.81 kB = 5.27 kB 5.23 kB
facebook-www/React-prod.classic.js = 21.02 kB 20.77 kB = 5.26 kB 5.21 kB
facebook-react-native/react/cjs/React-prod.js = 20.75 kB 20.50 kB = 5.22 kB 5.18 kB
facebook-www/React-prod.modern.js = 20.72 kB 20.47 kB = 5.18 kB 5.14 kB

Generated by 🚫 dangerJS against 78b2829

@@ -18,7 +18,6 @@ export {
StrictMode,
Suspense,
SuspenseList,
SuspenseList as unstable_SuspenseList, // TODO: Remove once call sights updated to SuspenseList
Copy link
Collaborator

Choose a reason for hiding this comment

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

This one technically isn't stable yet, despite being used at Meta ("Stage 2.5"). If anything I'd remove the unprefixed one and keep the unstable one. You can move the alias to the wrapper module in Meta's repo.

Copy link
Member Author

Choose a reason for hiding this comment

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

should the main React package be exporting this as unstable_SuspenseList as well then?

https://github.com/facebook/react/blob/main/packages/react/src/React.js#L133

Copy link
Member Author

Choose a reason for hiding this comment

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

i'll follow up with a separate PR for SuspenseList changes – if i remove just the SuspenseList export here without other changes we get CI failures

@noahlemen noahlemen changed the title Cleanup unused unstable_startTransition, unstable_useTransition, unstable_useDeferredValue, unstable_SuspenseList exports from fb packages Cleanup unused unstable_startTransition, unstable_useTransition, unstable_useDeferredValue, SuspenseList exports from fb packages Jul 5, 2023
@noahlemen noahlemen changed the title Cleanup unused unstable_startTransition, unstable_useTransition, unstable_useDeferredValue, SuspenseList exports from fb packages Cleanup unused unstable_startTransition, unstable_useTransition, unstable_useDeferredValue exports from fb packages Jul 5, 2023
@noahlemen noahlemen merged commit e91142d into facebook:main Jul 5, 2023
@noahlemen noahlemen deleted the cleanup-unstable-exports branch July 5, 2023 21:23
github-actions bot pushed a commit that referenced this pull request Jul 5, 2023
…able_useDeferredValue exports from fb packages (#27056)

## Summary

came across these TODOs – an internal grep indicated that remaining
callsites have been cleaned up, so these can now be removed.

## How did you test this change?

```
yarn flow dom-browser
yarn test
```

DiffTrain build for [e91142d](e91142d)
noahlemen added a commit that referenced this pull request Jul 6, 2023
## Summary

as we began [discussing
yesterday](#27056 (comment)),
`SuspenseList` is not actually stable yet, and should likely be exported
with the `unstable_` prefix.

the conversation yesterday began discussing this in the context of the
fb-specific packages, but changing it there without updating everywhere
else leads to test failures, so here the change is made across packages.

## How did you test this change?

```
yarn flow dom-browser
yarn test
```
github-actions bot pushed a commit that referenced this pull request Jul 6, 2023
## Summary

as we began [discussing
yesterday](#27056 (comment)),
`SuspenseList` is not actually stable yet, and should likely be exported
with the `unstable_` prefix.

the conversation yesterday began discussing this in the context of the
fb-specific packages, but changing it there without updating everywhere
else leads to test failures, so here the change is made across packages.

## How did you test this change?

```
yarn flow dom-browser
yarn test
```

DiffTrain build for [eb2c2f7](eb2c2f7)
jerrydev0927 added a commit to jerrydev0927/react that referenced this pull request Jan 5, 2024
## Summary

as we began [discussing
yesterday](facebook/react#27056 (comment)),
`SuspenseList` is not actually stable yet, and should likely be exported
with the `unstable_` prefix.

the conversation yesterday began discussing this in the context of the
fb-specific packages, but changing it there without updating everywhere
else leads to test failures, so here the change is made across packages.

## How did you test this change?

```
yarn flow dom-browser
yarn test
```

DiffTrain build for [eb2c2f7c2cf2652a168c2b433d2989131c69754b](facebook/react@eb2c2f7)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
…able_useDeferredValue exports from fb packages (facebook#27056)

## Summary

came across these TODOs – an internal grep indicated that remaining
callsites have been cleaned up, so these can now be removed.

## How did you test this change?

```
yarn flow dom-browser
yarn test
```
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
## Summary

as we began [discussing
yesterday](facebook#27056 (comment)),
`SuspenseList` is not actually stable yet, and should likely be exported
with the `unstable_` prefix.

the conversation yesterday began discussing this in the context of the
fb-specific packages, but changing it there without updating everywhere
else leads to test failures, so here the change is made across packages.

## How did you test this change?

```
yarn flow dom-browser
yarn test
```
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
…able_useDeferredValue exports from fb packages (#27056)

## Summary

came across these TODOs – an internal grep indicated that remaining
callsites have been cleaned up, so these can now be removed.

## How did you test this change?

```
yarn flow dom-browser
yarn test
```

DiffTrain build for commit e91142d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants