Skip to content

Commit e84327f

Browse files
committedOct 16, 2023
fix: force reload data in prerendered pages
1 parent 69f1baa commit e84327f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎src/runtime/composables/useStudio.ts

+4
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ export const useStudio = () => {
298298

299299
nuxtApp.hook('page:finish', () => {
300300
detectRenderedContents()
301+
302+
if (nuxtApp.payload.prerenderedAt) {
303+
requestRerender()
304+
}
301305
})
302306

303307
// @ts-ignore

0 commit comments

Comments
 (0)
Please sign in to comment.