Uh oh!
There was an error while loading. Please reload this page.
fix(nuxt): page hydration and double load - #7940
Conversation
Use ref count to wait for all existing suspense instance to finish before the `app:suspense:resolve` is called
|
✅ Deploy Preview for nuxt3-docs canceled.
|
mmis1000
commented
Oct 1, 2022
Looks fine to me except I am wondering what is this for 21d872c#diff-ef9ac7f796e2b5d9a4a232b098d7ce5dd92610191d35dfaf10612a76bfe532ddR50 Is this exist to ensure that layout used inside page changes when writing things like Also, this didn't seem to change any test results, is there a test for it? |
Yes, so, for example if you are changing page which has a layout within it, it doesn't force rerender the existing page with the new layout before suspense resolves. And yes, we should add a test for that case. I'll do that later unless you get to it first. |
mmis1000
commented
Oct 2, 2022
Yea, I think it would makes more sense in anthoer PR instead of this due to following reason.
|
danielroe
commented
Oct 2, 2022
I have great sympathy for your desire to push it to another PR, but I think it's not as complex as you are worried it will be. It's just a matter of creating two files:
I do think it would be good to add tests for this in this PR as it would be good to check that 21d872c is doing what it's meant to do, and that we don't accidentally regress the fix. |
https://stackblitz.com/edit/github-42bhq4?file=layouts%2Ftest3.vue,pages%2Findex.vue I think it will still also change the outer layout even you already set |
would love to see this pr merged and released 🙈 |
danielroe
commented
Oct 4, 2022
The only thing it needs is the test I mentioned previously. I'm on it. |
tada5hi
commented
Oct 8, 2022
any news on this ? |
atinux
commented
Oct 8, 2022
Thank you very much! It would be nice to have a way to detect how much kb add pull requests to the Nuxt default bundle size. |
loilo
commented
Oct 8, 2022
So, just out of curiosity (because I ran into nuxt/nuxt#14573 as well) – when is the next RC scheduled to be available? 🥹 |
danielroe
commented
Oct 8, 2022
Until then, you can try this out in the edge channel. |
loilo
commented
Oct 8, 2022
Thank you, will take a look. 🥳 |
🔗 Linked issue
Fixnuxt/nuxt#14839, fixesnuxt/nuxt#14573, closes#7400
❓ Type of change
📚 Description
This PR is a remake of #7400
Besides of fix and workaround in #7400.
A remaining issue is temporary blank page when switching between layout and navigate at the same time.
But that isn't fixable without vuejs/core#6736.
So it isn't handled here.
📝 Checklist