Skip to content

Commit

Permalink
fix(document-driven): disable static payload
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Sep 15, 2022
1 parent 1ec96bc commit c38a2e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime/plugins/documentDriven.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ export default defineNuxtPlugin((nuxt) => {
if (redirect) { return redirect }
})

if (process.server) {
delete nuxt.payload.prerenderedAt
}

// @ts-ignore - Refresh on client-side
nuxt.hook('app:data:refresh', async () => process.client && await refresh(useRoute(), true))
})

0 comments on commit c38a2e5

Please sign in to comment.