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
I tested the version 2.5.0 with parallel component rendering with the setup where I have originally discovered the parallel rendering issue and it does not seem to be fully fixed yet. It does not work properly with array.map async fragments.
Here is the rendering diagram:
I could easily reproduce this in a generic astro application.
// index.astro
---
import Layout from '../layouts/Layout.astro';
import Card from '../components/Card.astro';
import AsyncComponent from '../components/AsyncComponent.astro';
const asyncComponentDelays = [500, 1000, 1000, 2000, 1000];
---
<Layouttitle="Welcome to Astro.">
<main>
<h1>Welcome to <spanclass="text-gradient">Astro</span></h1>
<pclass="instructions">
To get started, open the directory <code>src/pages</code> in your project.<br />
<strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
</p>
{asyncComponentDelays.map((delay) => <AsyncComponentdelay={delay} />)}
// ...
What version of
astro
are you using?2.5.0
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
I tested the version 2.5.0 with parallel component rendering with the setup where I have originally discovered the parallel rendering issue and it does not seem to be fully fixed yet. It does not work properly with
array.map
async fragments.Here is the rendering diagram:
I could easily reproduce this in a generic astro application.
The result is 5.5s rendering (expected 2s):
If I add the following components
Then it results in 6.5s rendering time, which also should not be the case (should remain 5.5s, of course if 5.5s were the right time):
Is there something to work this around?
Link to Minimal Reproducible Example
https://github.com/smnbbrv/astro-parallel-rendering-issue
Participation
The text was updated successfully, but these errors were encountered: