mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
0903ef9049
* feat: add preact-ssr-prepass * added more info to changelog * fix example in changelog * fix changelog description * fix tab in code of changelog * Update .changeset/blue-bobcats-remain.md --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
466 B
466 B
@astrojs/preact |
---|
minor |
Allows rendering lazy components.
You can now use lazy components with Suspense:
import { lazy, Suspense } from 'preact/compat';
const HeavyComponent= lazy(() => import('./HeavyComponent'));
const Component = () => {
return (
<Suspense fallback={<p>Loading...</p>}>
<HeavyComponent foo="bar" />
</Suspense>
);
};