inProgress-team / inProgress-team/react-native-meteor
Meteor call returns function instead of cursor/array.
- Dominant language
- JavaScript
- Stars
- 688
- Forks
- 200
- PR merge metrics
- No merged PRs in 30d
Description
Im currently trying to pass the result of a meteor call (FindAll) that gets all the docs from a collection but for some reason its not working and `recipes` is a function and not the expected array.
```javascript
getRecipes(){
var recipes;
Meteor.call('Recipes.findAll', (err, res) => {
if(err) {
console.log(err)
} else {
console.log(res) // [Array of docs] "res" prints everything correctly
recipes = res;
}
});
return recipes;
}
render(){
return (
)
}
```
The `recipes` prop in the component `RecipesList` is a function. Im kinda new with react maybe im forgetting something. Any idea whats happening?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.