From 719ec6bdb79711ea403b4ac9057cdf5cd8f0d8ef Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 15 Jul 2020 10:00:07 -0400 Subject: [PATCH] Improved version heuristic --- packages/react-devtools-shared/src/backend/renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-devtools-shared/src/backend/renderer.js b/packages/react-devtools-shared/src/backend/renderer.js index 7551c5489cf6d..1f9f1e5f2397c 100644 --- a/packages/react-devtools-shared/src/backend/renderer.js +++ b/packages/react-devtools-shared/src/backend/renderer.js @@ -7,7 +7,7 @@ * @flow */ -import {gt, gte} from 'semver'; +import {gte} from 'semver'; import { ComponentFilterDisplayName, ComponentFilterElementType, @@ -153,7 +153,7 @@ export function getInternalReactConstants( // ********************************************************** // The section below is copied from files in React repo. // Keep it in sync, and add version guards if it changes. - if (gt(version, '16.13.1')) { + if (gte(version, '17.0.0-alpha')) { // TODO (Offscreen) Update the version number above to reflect the first Offscreen alpha/beta release. ReactTypeOfWork = { Block: 22,