Closed
Description
Option 2, Fetch data after the matched view is rendered, calls asyncData
in beforeMount
.
The pseudo-syntax is
if (asyncData)
asyncData()
This does not check if asyncData
was already called by the server! Thus, guided by the official docs, this leads to duplicate fetches. In the case of dynamic module registration, even to duplicate modules.
What is the suggested way around this? Could we please have some documentation here?
If this issue is unclear, I explain it in greater detail at vuejs/vue#9252, including a repro link. But it is more of a docs issue
Metadata
Metadata
Assignees
Labels
No labels