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 — Fix codestyle for typeof comparison (#19928) · react/react@43363e2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-reconciler/src
    • ReactFiberHooks.new.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-reconciler/src/ReactFiberHooks.new.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberHooks.new.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ function mountEffect(
12481248
): void {
12491249
if (__DEV__) {
12501250
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
1251-
if ('undefined' !== typeof jest) {
1251+
if (typeof jest !== 'undefined') {
12521252
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber);
12531253
}
12541254
}
@@ -1276,7 +1276,7 @@ function updateEffect(
12761276
): void {
12771277
if (__DEV__) {
12781278
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
1279-
if ('undefined' !== typeof jest) {
1279+
if (typeof jest !== 'undefined') {
12801280
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber);
12811281
}
12821282
}
@@ -1771,7 +1771,7 @@ function dispatchAction<S, A>(
17711771
}
17721772
if (__DEV__) {
17731773
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
1774-
if ('undefined' !== typeof jest) {
1774+
if (typeof jest !== 'undefined') {
17751775
warnIfNotScopedWithMatchingAct(fiber);
17761776
warnIfNotCurrentlyActingUpdatesInDev(fiber);
17771777
}

0 commit comments

Comments
0 (0)
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.