Skip to content

Commit 719ec6b

Browse files
author
Brian Vaughn
committed
Improved version heuristic
1 parent 7388c26 commit 719ec6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-devtools-shared/src/backend/renderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @flow
88
*/
99

10-
import {gt, gte} from 'semver';
10+
import {gte} from 'semver';
1111
import {
1212
ComponentFilterDisplayName,
1313
ComponentFilterElementType,
@@ -153,7 +153,7 @@ export function getInternalReactConstants(
153153
// **********************************************************
154154
// The section below is copied from files in React repo.
155155
// Keep it in sync, and add version guards if it changes.
156-
if (gt(version, '16.13.1')) {
156+
if (gte(version, '17.0.0-alpha')) {
157157
// TODO (Offscreen) Update the version number above to reflect the first Offscreen alpha/beta release.
158158
ReactTypeOfWork = {
159159
Block: 22,

0 commit comments

Comments
 (0)