Skip to content

Layout shift when using defaultSize #692

@cloudkite

Description

@cloudkite

Thanks for the great library! ❤️

I recently ran into and issue with using defaultSize and SSR. It looks like defaultSize is not read/used during SSR and therefore causes a layout shift once the client hydrates

Minimal reproduction:
https://stackblitz.com/edit/stackblitz-starters-cz7fruq9?file=src%2Fapp.tsx

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions