Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page content is loaded asynchronously from the layout #15144

Closed
ilyaDegtyarenko opened this issue Oct 13, 2022 · 3 comments
Closed

Page content is loaded asynchronously from the layout #15144

ilyaDegtyarenko opened this issue Oct 13, 2022 · 3 comments

Comments

@ilyaDegtyarenko
Copy link

Environment

Yarn v1.22.19, Nuxt 3.0.0-rc.11 with Nitro 0.5.4 , SSR

Reproduction

Reproduction: https://stackblitz.com/edit/nuxt-starter-mdckcn?file=pages/other.vue

Describe the bug

When you navigate on client side to a page with an asynchronous request without caching it (or another asynchronous script), the page content is loaded with a delay, while the layout has changed earlier

In my example, I guess that this is because the request is executed repeatedly on the client after server and because of this content of the page on client is waiting for execution of an asynchronous script

Additional context

Request example:

const { data } = await useFetch('[url]', { initialCache: false })

Logs

No response

@ilyaDegtyarenko
Copy link
Author

@danielroe maybe you can give some advice on how to prevent this? So that the page content changes simultaneously with the layout

@danielroe
Copy link
Member

I'm afraid this is currently pending this PR in vue core: vuejs/core#6736.

@danielroe
Copy link
Member

Let's track in #14467.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants