Skip to content

Commit

Permalink
Improved version heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Jul 15, 2020
1 parent 7388c26 commit 719ec6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-devtools-shared/src/backend/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @flow
*/

import {gt, gte} from 'semver';
import {gte} from 'semver';
import {
ComponentFilterDisplayName,
ComponentFilterElementType,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 719ec6b

Please sign in to comment.