GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Throw when `act` is used in production by acdlite · Pull Request #21686 · react/react

Conversation

@acdlite

@acdlite acdlite commented Jun 15, 2021

Copy link
Copy Markdown
Collaborator

Cleaning Up Our Act, part 1...

Upgrades the deprecation warning to a runtime error.

I did it this way instead of removing the export so the type is the same in both builds. It will get dead code eliminated regardless.

This does not affect the special, internal-only version of act that we use to test production behavior in our own test suite. Most of our suite was already migrated; I updated the remaining callers. (The name, unstable_concurrentAct, no longer makes much sense but I'll clean that up later.)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@acdlite
acdlite requested a review from rickhanlonii June 15, 2021 19:10
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jun 15, 2021
@acdlite
acdlite force-pushed the throw-act-prod branch from 89f865b to a70fe8b Compare June 15, 2021 19:15
@sizebot

sizebot commented Jun 15, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Comparing: 7ec4c55...7b07d45

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 = 127.40 kB 127.40 kB = 40.83 kB 40.83 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 130.21 kB 130.21 kB = 41.74 kB 41.74 kB
facebook-www/ReactDOM-prod.classic.js = 405.89 kB 405.89 kB = 75.03 kB 75.03 kB
facebook-www/ReactDOM-prod.modern.js = 394.32 kB 394.32 kB = 73.24 kB 73.24 kB
facebook-www/ReactDOMForked-prod.classic.js = 405.89 kB 405.89 kB = 75.03 kB 75.03 kB
oss-experimental/react-dom/umd/react-dom-test-utils.production.min.js = 13.99 kB 13.16 kB = 5.42 kB 5.14 kB
oss-stable-semver/react-dom/umd/react-dom-test-utils.production.min.js = 13.99 kB 13.16 kB = 5.42 kB 5.14 kB
oss-stable/react-dom/umd/react-dom-test-utils.production.min.js = 13.99 kB 13.16 kB = 5.42 kB 5.14 kB
oss-experimental/react-dom/cjs/react-dom-test-utils.production.min.js = 13.99 kB 13.09 kB = 5.38 kB 5.09 kB
oss-stable-semver/react-dom/cjs/react-dom-test-utils.production.min.js = 13.99 kB 13.09 kB = 5.38 kB 5.09 kB
oss-stable/react-dom/cjs/react-dom-test-utils.production.min.js = 13.99 kB 13.09 kB = 5.38 kB 5.09 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/ReactDOMTesting-prod.classic.js = 399.82 kB 396.97 kB = 75.63 kB 74.87 kB
facebook-www/ReactDOMTesting-prod.modern.js = 386.56 kB 383.71 kB = 73.48 kB 72.70 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-profiling.js = 252.48 kB 250.38 kB = 46.04 kB 45.61 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-prod.js = 237.78 kB 235.68 kB = 43.81 kB 43.37 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.production.min.js = 81.83 kB 81.08 kB = 25.83 kB 25.53 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.production.min.js = 81.68 kB 80.93 kB = 25.44 kB 25.17 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.production.min.js = 79.45 kB 78.71 kB = 24.99 kB 24.73 kB
oss-stable/react-test-renderer/umd/react-test-renderer.production.min.js = 79.45 kB 78.71 kB = 24.99 kB 24.73 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.production.min.js = 79.30 kB 78.55 kB = 24.67 kB 24.40 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.production.min.js = 79.30 kB 78.55 kB = 24.67 kB 24.40 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.min.js = 100.48 kB 99.42 kB = 31.03 kB 30.51 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.profiling.min.js = 96.22 kB 95.16 kB = 29.63 kB 29.13 kB
oss-stable/react-reconciler/cjs/react-reconciler.profiling.min.js = 96.22 kB 95.16 kB = 29.63 kB 29.13 kB
oss-experimental/react-reconciler/cjs/react-reconciler.production.min.js = 93.06 kB 92.00 kB = 28.79 kB 28.29 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.production.min.js = 90.61 kB 89.55 kB = 27.99 kB 27.49 kB
oss-stable/react-reconciler/cjs/react-reconciler.production.min.js = 90.61 kB 89.55 kB = 27.99 kB 27.49 kB
oss-experimental/react-dom/umd/react-dom-test-utils.production.min.js = 13.99 kB 13.16 kB = 5.42 kB 5.14 kB
oss-stable-semver/react-dom/umd/react-dom-test-utils.production.min.js = 13.99 kB 13.16 kB = 5.42 kB 5.14 kB
oss-stable/react-dom/umd/react-dom-test-utils.production.min.js = 13.99 kB 13.16 kB = 5.42 kB 5.14 kB
oss-experimental/react-dom/cjs/react-dom-test-utils.production.min.js = 13.99 kB 13.09 kB = 5.38 kB 5.09 kB
oss-stable-semver/react-dom/cjs/react-dom-test-utils.production.min.js = 13.99 kB 13.09 kB = 5.38 kB 5.09 kB
oss-stable/react-dom/cjs/react-dom-test-utils.production.min.js = 13.99 kB 13.09 kB = 5.38 kB 5.09 kB

Generated by 🚫 dangerJS against 7b07d45

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@acdlite
Throw when act is used in production
7b07d45
Upgrades the deprecation warning to a runtime error.

I did it this way instead of removing the export so the type is the same
in both builds. It will get dead code eliminated regardless.
@acdlite
acdlite force-pushed the throw-act-prod branch from a70fe8b to 7b07d45 Compare June 15, 2021 21:16
rickhanlonii
rickhanlonii approved these changes Jun 16, 2021
View reviewed changes

@rickhanlonii rickhanlonii left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@acdlite
acdlite merged commit bd0a963 into react:master Jun 16, 2021
@gaearon gaearon mentioned this pull request Jun 17, 2021
Fix failing test #21697
Merged
facebook-github-bot pushed a commit to react/react-native that referenced this pull request Jun 22, 2021
@kacieb @facebook-github-bot
React Native sync for revisions c96b78e...568dc35
d4d22fb
Summary:
This sync includes the following changes:
- **[43f4cc1](react/react@43f4cc160 )**: Fix failing test ([#21697](react/react#21697)) //<Dan Abramov>//
- **[d0f348d](react/react@d0f348dc1 )**: Fix for failed Suspense layout semantics ([#21694](react/react#21694)) //<Brian Vaughn>//
- **[bd0a963](react/react@bd0a96344 )**: Throw when `act` is used in production ([#21686](react/react#21686)) //<Andrew Clark>//
- **[9343f87](react/react@9343f8720 )**: Use the server src files as entry points for the builds/tests ([#21683](react/react#21683)) //<Sebastian Markbåge>//
- **[502f8a2](react/react@502f8a2a0 )**: [Fizz/Flight] Don't use default args ([#21681](react/react#21681)) //<Sebastian Markbåge>//
- **[a8f5e77](react/react@a8f5e77b9 )**: Remove invokeGuardedCallback from commit phase ([#21666](react/react#21666)) //<Dan Abramov>//
- **[dbe3363](react/react@dbe3363cc )**: [Fizz] Implement Legacy renderToString and renderToNodeStream on top of Fizz ([#21276](react/react#21276)) //<Sebastian Markbåge>//
- **[101ea9f](react/react@101ea9f55 )**: Set deletedTreeCleanUpLevel to 3 ([#21679](react/react#21679)) //<Dan Abramov>//
- **[1a106bd](react/react@1a106bdc2 )**: Wrap eventhandle-specific logic in a flag ([#21657](react/react#21657)) //<Dan Abramov>//
- **[cb30388](react/react@cb30388d1 )**: Export React Native `AttributeType` Types ([#21661](react/react#21661)) //<Timothy Yung>//
- **[c153679](react/react@c1536795c )**: Revert "Make enableSuspenseLayoutEffectSemantics static for www ([#21617](react/react#21617))" ([#21656](react/react#21656)) //<Sebastian Markbåge>//

Changelog:
[General][Changed] - React Native sync for revisions c96b78e...568dc35

jest_e2e[run_all_tests]

Reviewed By: rickhanlonii

Differential Revision: D29303157

fbshipit-source-id: 90952885eb2264f4effa04070357b80700bb9be3
@gaearon gaearon mentioned this pull request Mar 29, 2022
Add React 18 changelog #24195
Merged
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
@acdlite
Throw when act is used in production (react#21686)
6199bd7
Upgrades the deprecation warning to a runtime error.

I did it this way instead of removing the export so the type is the same
in both builds. It will get dead code eliminated regardless.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@acdlite
Throw when act is used in production (react#21686)
2fbb954
Upgrades the deprecation warning to a runtime error.

I did it this way instead of removing the export so the type is the same
in both builds. It will get dead code eliminated regardless.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@rickhanlonii rickhanlonii rickhanlonii approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@acdlite @sizebot @rickhanlonii @facebook-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.