-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
Adjust consoleManagedByDevToolsDuringStrictMode feature flag #22253
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ export const enableSyncDefaultUpdates = true; | |
export const allowConcurrentByDefault = false; | ||
export const enablePersistentOffscreenHostContainer = false; | ||
|
||
export const consoleManagedByDevToolsDuringStrictMode = true; | ||
export const consoleManagedByDevToolsDuringStrictMode = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This (and other test flag changes below) seems reasonable. |
||
|
||
// Flow magic to verify the exports of this file match the original version. | ||
// eslint-disable-next-line no-unused-vars | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ export const enableSyncDefaultUpdates = true; | |
export const allowConcurrentByDefault = true; | ||
export const enablePersistentOffscreenHostContainer = false; | ||
|
||
export const consoleManagedByDevToolsDuringStrictMode = true; | ||
export const consoleManagedByDevToolsDuringStrictMode = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
||
// Flow magic to verify the exports of this file match the original version. | ||
// eslint-disable-next-line no-unused-vars | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ export const enableSyncDefaultUpdates = true; | |
export const allowConcurrentByDefault = true; | ||
export const enablePersistentOffscreenHostContainer = false; | ||
|
||
export const consoleManagedByDevToolsDuringStrictMode = true; | ||
export const consoleManagedByDevToolsDuringStrictMode = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
||
// Flow magic to verify the exports of this file match the original version. | ||
// eslint-disable-next-line no-unused-vars | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ export const enableSyncDefaultUpdates = true; | |
export const allowConcurrentByDefault = false; | ||
export const enablePersistentOffscreenHostContainer = false; | ||
|
||
export const consoleManagedByDevToolsDuringStrictMode = true; | ||
export const consoleManagedByDevToolsDuringStrictMode = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
||
// Flow magic to verify the exports of this file match the original version. | ||
// eslint-disable-next-line no-unused-vars | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ export const enableSyncDefaultUpdates = true; | |
export const allowConcurrentByDefault = true; | ||
export const enablePersistentOffscreenHostContainer = false; | ||
|
||
export const consoleManagedByDevToolsDuringStrictMode = true; | ||
export const consoleManagedByDevToolsDuringStrictMode = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
||
// Flow magic to verify the exports of this file match the original version. | ||
// eslint-disable-next-line no-unused-vars | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,4 @@ export const enableSyncDefaultUpdates = __VARIANT__; | |
export const allowConcurrentByDefault = true; | ||
export const enablePersistentOffscreenHostContainer = false; | ||
|
||
export const consoleManagedByDevToolsDuringStrictMode = true; | ||
export const consoleManagedByDevToolsDuringStrictMode = __VARIANT__; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
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
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.