Skip to content

Commit

Permalink
fix(gatsby): stitch slices if just page html was regenerating without…
Browse files Browse the repository at this point in the history
… any of used slices regenerating (#36950)
  • Loading branch information
pieh authored Nov 3, 2022
1 parent 10abdcb commit 3044280
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/gatsby/src/redux/reducers/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ export function htmlReducer(
const htmlFile = state.trackedHtmlFiles.get(path)
if (htmlFile) {
htmlFile.dirty = 0
// if we regenerated html, slice placeholders will be empty and we will have to fill
// them in, so we are marking that page for stitching
state.pagesThatNeedToStitchSlices.add(path)
}
}

Expand Down

0 comments on commit 3044280

Please sign in to comment.