Skip to content

Commit

Permalink
non-pqr match pqr - materialize first, queries later
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Feb 21, 2022
1 parent d86fcaa commit a1c0bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ module.exports = async function build(
waitForWorkerPoolRestart = workerPool.restart()
await mergeWorkerState(workerPool, buildSpan)
} else {
waitMaterializePageMode = materializePageMode()

await runStaticQueries({
queryIds,
parentSpan: buildSpan,
Expand All @@ -315,8 +317,6 @@ module.exports = async function build(
parentSpan: buildSpan,
store,
})

waitMaterializePageMode = materializePageMode()
}

// create scope so we don't leak state object
Expand Down

0 comments on commit a1c0bf6

Please sign in to comment.