software-mansion/react-freeze

Freeze snapshot

ethanshar opened this issue ยท 3 comments

It would have been great if freezing a component will generate some sort of a non-reactive snapshot that can be displayed instead of returning null.
That would great with showing temporarily blanks screens/components till they get unfreeze

Not sure if this is possible, but it would be awesome.

One (hack) idea could be to use react-native-view-shot to capture an image onBlur, and render that as the fallback.

It would have been great if freezing a component will generate some sort of a non-reactive snapshot that can be displayed instead of returning null. That would great with showing temporarily blanks screens/components till they get unfreeze

I was under the impression that this library was for this thing. I got my hopes high. But anyway, it would be great if we could display the snapshot until the interaction manager is complete. This would be game changer specially for Android.

We dealt with this by capturing the innerHTML of the node we planned to freeze before freezing and using that as the placeholder. Seemed to work.