Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions packages/gatsby/src/utils/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,28 @@ const activeFlags: Array<IFlag> = [
testFitness: (): fitnessEnum => false,
requires: `As of [email protected] this feature is available as a config option inside gatsby-config. Learn more at https://gatsby.dev/graphql-typegen`,
},
{
name: `PARTIAL_HYDRATION`,
env: `GATSBY_PARTIAL_HYDRATION`,
command: `build`,
telemetryId: `PartialHydration`,
description: `TBD`,
umbrellaIssue: `TBD`,
experimental: true,
noCI: true,
testFitness: (): fitnessEnum => {
if (_CFLAGS_.GATSBY_MAJOR === `5`) {
return `LOCKED_IN`
}

const isReact18 =
semver.major(require(`react-dom/package.json`).version) >= 18 ||
String(semver.major(require(`react-dom/package.json`).version)) === `0`

return isReact18
},
requires: `As of [email protected] this feature is available as a config option inside gatsby-config. Learn more at https://gatsby.dev/graphql-typegen`,
},
]

export default activeFlags