navigation icon indicating copy to clipboard operation
navigation copied to clipboard

AsideHeader Menu defaultHeight for SSR

Open GoncharovV opened this issue 1 year ago • 0 comments

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

GoncharovV avatar Oct 28 '24 09:10 GoncharovV