inProgress-team / react-native-meteor

Meteor Reactivity for your React Native application :)
MIT License
693 stars 210 forks source link

Subscribing seems to hang the UI thread #301

Open schlaegerz opened 6 years ago

schlaegerz commented 6 years ago

Any time I try to update a subscription it seems that my UI thread is hanging.

Is there any way to run it on a background thread?

mciparelli commented 6 years ago

Yeah this is killing me. I'm going to investigate for options to make them run in the background

hqtoan94 commented 6 years ago

I'm facing with this issue also. Maybe you update your subscription during animations? I solved that by using InteractionManager before I start the subscription.

Hope that helps.

vforvasile commented 4 years ago

I'm facing with this issue also. Maybe you update your subscription during animations? I solved that by using InteractionManager before I start the subscription.

Hope that helps.

Would you mind giving an example of how you achieved that? @hqtoan94