react-freeze icon indicating copy to clipboard operation
react-freeze copied to clipboard

Customize "Hiding" the Frozen Element

Open shshaw opened this issue 6 months ago • 0 comments

Related to https://github.com/software-mansion/react-freeze/issues/27 but a bit different.

React Suspense adds display: none !important to suspended elements that are kept in the DOM, and then the fallback gets injected.

Is there a way to have the element still displayed but be frozen for updates? Can Suspense or react-freeze be customized at all to let the Element itself still be displayed, while still being frozen?

Use Case: Using IntersectionObserver + freeze to create a virtualized list.

shshaw avatar Jul 01 '25 16:07 shshaw