github withastro/astro @astrojs/preact@3.1.0

latest releases: astro@5.0.0-beta.8, astro@4.16.12, astro@4.16.11...
10 months ago

Minor Changes

  • #9524 0903ef90494e9c8bd0272347a0cdd51eca7f4648 Thanks @aleksandrjet! - 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>
      );
    };

Don't miss a new astro release

NewReleases is sending notifications on new releases.