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 — Adjust consoleManagedByDevToolsDuringStrictMode feature flag by gaearon · Pull Request #22253 · react/react

Conversation

@gaearon

@gaearon gaearon commented Sep 6, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

Fixes #22196 (comment).

See individual comments for justification.

Sorry, something went wrong.

Uh oh!

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

All reactions
@gaearon
Adjust consoleManagedByDevToolsDuringStrictMode feature flag
d6b3221
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Sep 6, 2021
gaearon
gaearon commented Sep 6, 2021
View reviewed changes

@gaearon gaearon left a comment

Copy link
Copy Markdown
Collaborator Author

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.

this is what I would expect, would appreciate help on what I'm misunderstanding :)

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/shared/ReactFeatureFlags.js
export const enablePersistentOffscreenHostContainer = false;

export const consoleManagedByDevToolsDuringStrictMode = false;
export const consoleManagedByDevToolsDuringStrictMode = true;

@gaearon gaearon Sep 6, 2021

Copy link
Copy Markdown
Collaborator Author

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.

I'd expect this to be true because it's OSS web React, which is managed by DevTools

Sorry, something went wrong.

Uh oh!

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

All reactions

@bvaughn bvaughn Sep 6, 2021

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.

This was an oversight from the previous PR. Thanks for catching.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/shared/forks/ReactFeatureFlags.test-renderer.js
export const enablePersistentOffscreenHostContainer = false;

export const consoleManagedByDevToolsDuringStrictMode = true;
export const consoleManagedByDevToolsDuringStrictMode = false;

@gaearon gaearon Sep 6, 2021

Copy link
Copy Markdown
Collaborator Author

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.

I'd expect this to be false because test renderer doesn't talk to DevTools

Sorry, something went wrong.

Uh oh!

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

All reactions

@bvaughn bvaughn Sep 6, 2021

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.

This (and other test flag changes below) seems reasonable.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/shared/forks/ReactFeatureFlags.test-renderer.native.js
export const enablePersistentOffscreenHostContainer = false;

export const consoleManagedByDevToolsDuringStrictMode = true;
export const consoleManagedByDevToolsDuringStrictMode = false;

@gaearon gaearon Sep 6, 2021

Copy link
Copy Markdown
Collaborator Author

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.

I'd expect this to be false because test renderer doesn't talk to DevTools

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/shared/forks/ReactFeatureFlags.test-renderer.www.js
export const enablePersistentOffscreenHostContainer = false;

export const consoleManagedByDevToolsDuringStrictMode = true;
export const consoleManagedByDevToolsDuringStrictMode = false;

@gaearon gaearon Sep 6, 2021

Copy link
Copy Markdown
Collaborator Author

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.

I'd expect this to be false because test renderer doesn't talk to DevTools

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/shared/forks/ReactFeatureFlags.testing.js
export const enablePersistentOffscreenHostContainer = false;

export const consoleManagedByDevToolsDuringStrictMode = true;
export const consoleManagedByDevToolsDuringStrictMode = false;

@gaearon gaearon Sep 6, 2021

Copy link
Copy Markdown
Collaborator Author

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.

I'd expect this to be false because the "testing" builds of ReactDOM (which we currently don't actually use) would run in an environment that probably doesn't have DevTools, so it's not clear to me that this makes sense there

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/shared/forks/ReactFeatureFlags.testing.www.js
export const enablePersistentOffscreenHostContainer = false;

export const consoleManagedByDevToolsDuringStrictMode = true;
export const consoleManagedByDevToolsDuringStrictMode = false;

@gaearon gaearon Sep 6, 2021

Copy link
Copy Markdown
Collaborator Author

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.

I'd expect this to be false because the "testing" builds of ReactDOM (which we currently don't actually use) would run in an environment that probably doesn't have DevTools, so it's not clear to me that this makes sense there

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/shared/forks/ReactFeatureFlags.www-dynamic.js
export const enablePersistentOffscreenHostContainer = false;

export const consoleManagedByDevToolsDuringStrictMode = true;
export const consoleManagedByDevToolsDuringStrictMode = __VARIANT__;

@gaearon gaearon Sep 6, 2021

Copy link
Copy Markdown
Collaborator Author

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.

The instructions in this file tell me to use the VARIANT configuration instead of hardcoding a value so I assume that's what I should do

Sorry, something went wrong.

Uh oh!

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

All reactions

@bvaughn bvaughn Sep 6, 2021

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.

I don't have a strong opinion about this change one way or another. We have several other hard-coded values in this file, FWIW.

Sorry, something went wrong.

Uh oh!

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

All reactions

@gaearon gaearon Sep 6, 2021

Copy link
Copy Markdown
Collaborator Author

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.

If I understand correctly those were originally TODOs that failed when this file was introduced. At the time the assumption was that we’d convert them all, and that any newly added ones should be added above (and use VARIANT). Maybe we should make that comment clearer.

Sorry, something went wrong.

Uh oh!

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

All reactions
@gaearon gaearon mentioned this pull request Sep 6, 2021
Add consoleManagedByDevToolsDuringStrictMode feature flag in React Reconciler #22196
Merged
bvaughn
bvaughn approved these changes Sep 6, 2021
View reviewed changes
Comment thread packages/shared/forks/ReactFeatureFlags.www-dynamic.js
export const enablePersistentOffscreenHostContainer = false;

export const consoleManagedByDevToolsDuringStrictMode = true;
export const consoleManagedByDevToolsDuringStrictMode = __VARIANT__;

@bvaughn bvaughn Sep 6, 2021

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.

I don't have a strong opinion about this change one way or another. We have several other hard-coded values in this file, FWIW.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/shared/ReactFeatureFlags.js
export const enablePersistentOffscreenHostContainer = false;

export const consoleManagedByDevToolsDuringStrictMode = false;
export const consoleManagedByDevToolsDuringStrictMode = true;

@bvaughn bvaughn Sep 6, 2021

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.

This was an oversight from the previous PR. Thanks for catching.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/shared/forks/ReactFeatureFlags.test-renderer.js
export const enablePersistentOffscreenHostContainer = false;

export const consoleManagedByDevToolsDuringStrictMode = true;
export const consoleManagedByDevToolsDuringStrictMode = false;

@bvaughn bvaughn Sep 6, 2021

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.

This (and other test flag changes below) seems reasonable.

Sorry, something went wrong.

Uh oh!

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

All reactions
@sizebot

sizebot commented Sep 7, 2021

Copy link
Copy Markdown

Comparing: 1314299...d6b3221

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.60 kB 127.60 kB = 40.73 kB 40.73 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 130.42 kB 130.42 kB = 41.66 kB 41.66 kB
facebook-www/ReactDOM-prod.classic.js = 405.18 kB 405.18 kB = 75.05 kB 75.05 kB
facebook-www/ReactDOM-prod.modern.js = 393.75 kB 393.75 kB = 73.33 kB 73.33 kB
facebook-www/ReactDOMForked-prod.classic.js = 405.18 kB 405.18 kB = 75.05 kB 75.05 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against d6b3221

All reactions

Sorry, something went wrong.

Uh oh!

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

@gaearon
gaearon merged commit 2f156ea into react:main Sep 7, 2021
@ryota-murakami

ryota-murakami commented Sep 7, 2021

Copy link
Copy Markdown
Contributor

Neat, I like this naming, too explicitly what does option doing actually!

All reactions

Sorry, something went wrong.

Uh oh!

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

facebook-github-bot pushed a commit to react/react-native that referenced this pull request Sep 11, 2021
@rickhanlonii @facebook-github-bot
React Native sync for revisions bd5bf55...95d762e
7f7f818
Summary:
This sync includes the following changes:
- **[95d762e](react/react@95d762e40 )**: Remove duplicate test //<Andrew Clark>//
- **[d4d1dc0](react/react@d4d1dc085 )**: Reorder VARIANT feature flags ([#22266](react/react#22266)) //<Dan Abramov>//
- **[2f156ea](react/react@2f156eafb )**: Adjust consoleManagedByDevToolsDuringStrictMode feature flag ([#22253](react/react#22253)) //<Dan Abramov>//
- **[cfd8193](react/react@cfd819332 )**: Add useSyncExternalStore to react-debug-tools ([#22240](react/react#22240)) //<Andrew Clark>//
- **[8e80592](react/react@8e80592a3 )**: Remove state queue from useSyncExternalStore ([#22265](react/react#22265)) //<Andrew Clark>//
- **[06f98c1](react/react@06f98c168 )**: Implement useSyncExternalStore in Fiber ([#22239](react/react#22239)) //<Andrew Clark>//
- **[77912d9](react/react@77912d9a0 )**: Wire up the native API for useSyncExternalStore ([#22237](react/react#22237)) //<Andrew Clark>//
- **[031abd2](react/react@031abd24b )**: Add warning and test for useSyncExternalStore when getSnapshot isn't cached ([#22262](react/react#22262)) //<salazarm>//
- **[b8884de](react/react@b8884de24 )**: break up import keyword to avoid being accidentally parsed as dynamic import statement in external code ([#21918](react/react#21918)) //<Jianhua Zheng>//
- **[6d6bba5](react/react@6d6bba5bf )**: Fix typo in ReactUpdatePriority-test.js ([#21958](react/react#21958)) //<Ikko Ashimine>//
- **[0c0d1dd](react/react@0c0d1ddae )**: feat(eslint-plugin-react-hooks): support ESLint 8.x ([#22248](react/react#22248)) //<Michaël De Boey>//
- **[1314299](react/react@1314299c7 )**: Initial shim of useSyncExternalStore ([#22211](react/react#22211)) //<Andrew Clark>//
- **[fc40f02](react/react@fc40f02ad )**: Add consoleManagedByDevToolsDuringStrictMode feature flag in React Reconciler ([#22196](react/react#22196)) //<Luna Ruan>//
- **[46a0f05](react/react@46a0f050a )**: Set up use-sync-external-store package ([#22202](react/react#22202)) //<Andrew Clark>//
- **[8723e77](react/react@8723e772b )**: Fix a string interpolation typo in ReactHooks test ([#22174](react/react#22174)) //<Matt Hargett>//
- **[60a30cf](react/react@60a30cf32 )**: Console Logging for StrictMode Double Rendering ([#22030](react/react#22030)) //<Luna Ruan>//
- **[76bbad3](react/react@76bbad3e3 )**: Add maxYieldMs feature flag in Scheduler ([#22165](react/react#22165)) //<Ricky>//
- **[b0b53ae](react/react@b0b53ae2c )**: Add feature flags for scheduler experiments ([#22105](react/react#22105)) //<Ricky>//

Changelog:
[General][Changed] - React Native sync for revisions bd5bf55...95d762e

jest_e2e[run_all_tests]

Reviewed By: mdvacca

Differential Revision: D30809906

fbshipit-source-id: 131cfdf91e15f67fa59a5d925467e538ee89fe10
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
@gaearon @zhengjitf
Adjust consoleManagedByDevToolsDuringStrictMode feature flag (react#2…
55c964e
…2253)
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
@gaearon
Adjust consoleManagedByDevToolsDuringStrictMode feature flag (react#2…
f0ecab2
…2253)
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@gaearon
Adjust consoleManagedByDevToolsDuringStrictMode feature flag (react#2…
26e7082
…2253)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@bvaughn bvaughn bvaughn 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.

5 participants

@gaearon @sizebot @ryota-murakami @bvaughn @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.