Skip to content

AsideHeader Menu defaultHeight for SSR #331

@GoncharovV

Description

@GoncharovV

Autosizer component can calculate it's size only on client side. (by using window API)

So, due to the behavior of the library, menu items will not be rendered during SSR. They will be shown only after hydration. It cause fast "blink" on client side

The autosizer library allows to pass default width and height for SSR. (Example)

The defaultWidth most likely can be calculated from sidebar width (which is constant)
But height depends on the number of menu items, so we need to pass it manually for SSR

Feature request

Please add an ability to pass custom defaultHeight for AsideHeader menu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions