palantir/blueprint

Support for lazy loading tabs

Open

#4,669 opened on Apr 22, 2021

View on GitHub
 (0 comments) (3 reactions) (0 assignees)TypeScript (2,167 forks)batch import
P2Package: coreType: feature requesthelp wanted

Repository metrics

Stars
 (20,263 stars)
PR merge metrics
 (Avg merge 43d 10h) (27 merged PRs in 30d)

Description

There is support for renderActiveTabPanelOnly but not something in between: Do not unmount any tabs, but only mount tabs after they are clicked on instead of all at initial load.

This is the default behavior in some libraries (eg. https://ant.design/components/tabs/, it can still overwrite default behavior with forceRender prop).

Contributor guide