You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
This was fixed nicely with #214 with the addition of serverPrefetch() and updated docs. Great.
Store code splitting with preserveState: true does not work for me (state is missing; shouldnt it be preserveState: false server-side anyway? nothing to preserve here, hence empty state), however that is a seperate issue, not to be handled here.
Option 2, Fetch data after the matched view is rendered, calls
asyncData
inbeforeMount
.The pseudo-syntax is
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
The text was updated successfully, but these errors were encountered: