SQLpage icon indicating copy to clipboard operation
SQLpage copied to clipboard

feat: add lazy component

Open mtt-artis opened this issue 5 months ago • 3 comments

Hi 👋,

I'm working with some resource-intensive queries that take some time to execute, and the embed option on the card component works really well. However, I’d like to prevent layout shifts and avoid having cards nested inside other cards.

The lazy component follows a similar logic but provides an element you can style before it's replaced with the actual content.

Please feel free to make any changes, rename the component (coming from React/Solid, that's what comes naturally to me), or guide me in the right direction.

If you like this implementation, I'd be happy to add it to the documentation.

mtt-artis avatar Sep 22 '24 15:09 mtt-artis