Skip to content

Commit 3044280

Browse files
authored
fix(gatsby): stitch slices if just page html was regenerating without any of used slices regenerating (#36950)
1 parent 10abdcb commit 3044280

File tree

1 file changed

+3
-0
lines changed
  • packages/gatsby/src/redux/reducers

1 file changed

+3
-0
lines changed

packages/gatsby/src/redux/reducers/html.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ export function htmlReducer(
258258
const htmlFile = state.trackedHtmlFiles.get(path)
259259
if (htmlFile) {
260260
htmlFile.dirty = 0
261+
// if we regenerated html, slice placeholders will be empty and we will have to fill
262+
// them in, so we are marking that page for stitching
263+
state.pagesThatNeedToStitchSlices.add(path)
261264
}
262265
}
263266

0 commit comments

Comments
 (0)