meteorrn / meteor-react-native

Meteor client for React Native matching Meteor Spec
https://guide.meteor.com/react-native.html
Other
59 stars 31 forks source link

handle.ready() is always false #78

Closed Akashdeep312 closed 2 years ago

Akashdeep312 commented 2 years ago

hi i've just upgraded to the meteorrn from react-native-meteor-upgraded and since then on a specific screen handle.ready() is always returns false.

I am getting messaging threads from server with the following code and after some time i get the results and handle.ready() returns me true and just after that it's starts return false continuously

const handles = [   Meteor.subscribe('Get_Message_Data_Athlete')    ]
     ...
const loading = handles.some(handle => !handle.ready())

packages are as follows

"react": "16.13.1"
"react-native": "0.63.4",
"@meteorrn/core": "^2.3.0",
Akashdeep312 commented 2 years ago

hey thanks for looking into it, turns out it was occurring due to backend error