mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(nuxt): await async payload revivers (#25222)
This commit is contained in:
parent
fa7685135b
commit
4893d19db8
@ -102,7 +102,7 @@ export async function getNuxtClientPayload () {
|
||||
return {}
|
||||
}
|
||||
|
||||
const inlineData = parsePayload(el.textContent || '')
|
||||
const inlineData = await parsePayload(el.textContent || '')
|
||||
|
||||
const externalData = el.dataset.src ? await _importPayload(el.dataset.src) : undefined
|
||||
|
||||
@ -115,8 +115,8 @@ export async function getNuxtClientPayload () {
|
||||
return payloadCache
|
||||
}
|
||||
|
||||
export function parsePayload (payload: string) {
|
||||
return parse(payload, useNuxtApp()._payloadRevivers)
|
||||
export async function parsePayload (payload: string) {
|
||||
return await parse(payload, useNuxtApp()._payloadRevivers)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user