[Popover] Performance: add isLazy prop similar to Menu to skip rendering of the content
See original GitHub issueWhat problem does this feature solve? Now that the Menu has the isLazy prop which greatly improves rendering performance, let’s have the same prop for Popovers – in my experience, not rendering their content before user actually opens them may improve performance significantly in some cases.
What does the proposed API look like?
<Popover isLazy>
Describe alternatives you’ve considered Support for a render prop, similar to Menu would also be appreciated (and very consistent with the Menu component API).
Additional context See #1118 for context
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Popover - Chakra UI
If you want to defer rendering of popover content until that Popover is opened, you can use the isLazy prop. This is useful...
Read more >Menu - Argon Dashboard Chakra - Creative Tim
Chakra UI exports 8 components for rendering menus: Menu : The wrapper component provides context, state, and focus management.
Read more >Popover menu renders in different place than the anchor ...
The problem is the nesting of DesktopNavbar within DashboardNavbar . This means that every time DashboardNavbar re-renders, ...
Read more >Menu - Chakra UI
Chakra UI exports 8 components for rendering menus: Menu : The wrapper component provides context, state, and focus management. MenuList : The wrapper...
Read more >react-native-popover-view - npm
Both JS Modal and Tooltip modes render the Popover into the react component tree instead of in a dedicated native modal. Because of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
great, thx for your quick reply
Thanks for the reminder @dmitru.
I’ve just updated the popover to support this.
We’ll publish an update shortly.