Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.

Commit e84327f

Browse files
committed
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

src/runtime/composables/useStudio.ts

Lines changed: 4 additions & 0 deletions
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)