Skip to content

Commit

Permalink
Cleanup refs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoesburg committed Jun 23, 2022
1 parent f338d25 commit 30014fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vue-app/template/App.js
Expand Up @@ -175,7 +175,7 @@ export default {
<% if (loading) { %>this.$loading.start()<% } %>
const promises = pages.map(async (page) => {
const p = []
let p = []
<% if (features.fetch) { %>
// Old fetch
Expand All @@ -200,6 +200,8 @@ export default {
<% if (features.fetch) { %>
// Wait for asyncData & old fetch to finish
await Promise.all(p)
// Cleanup refs
p = []
if (page.$fetch) {
p.push(page.$fetch())
Expand Down

0 comments on commit 30014fb

Please sign in to comment.