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

RFC: flushSync should flush passive effects if they were the result of a sync update #21124

Closed

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Mar 29, 2021

If there are pending passive effects that were the result of a sync/discrete update, flushSync() should flush them, so the caller can observe the result.

We can skip passive effects that don't have sync/discrete priority.

This would replace the need for flushDiscreteUpdates(), which is identical to flushSync() except for this.

If there are pending passive effects that were the result of a
sync/discrete update, `flushSync()` should flush them, so the caller can
observe the result.

We can skip passive effects that don't have sync/discrete priority.

This would replace the need for `flushDiscreteUpdates()`, which is
identical to `flushSync()` except for this.
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Mar 29, 2021
@sizebot
Copy link

sizebot commented Mar 29, 2021

Comparing: 634cc52...12c2e0c

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 +0.02% 122.30 kB 122.33 kB +0.03% 39.25 kB 39.27 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js +0.02% 128.82 kB 128.85 kB +0.02% 41.34 kB 41.35 kB
facebook-www/ReactDOM-prod.classic.js +0.03% 404.56 kB 404.67 kB +0.02% 75.22 kB 75.23 kB
facebook-www/ReactDOM-prod.modern.js +0.03% 392.82 kB 392.93 kB +0.02% 73.34 kB 73.35 kB
facebook-www/ReactDOMForked-prod.classic.js +0.03% 404.56 kB 404.67 kB +0.02% 75.22 kB 75.24 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 12c2e0c

@acdlite acdlite marked this pull request as draft March 30, 2021 03:47
@acdlite acdlite marked this pull request as ready for review March 30, 2021 04:17
@acdlite
Copy link
Collaborator Author

acdlite commented Mar 31, 2021

Closed in favor of #21150

@acdlite acdlite closed this Mar 31, 2021
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