0
私はデータを取得しようとしていますが、未定義ですが、私が望むものを手に入れよう。私は理解しています、私はただの応答を待っています。オブジェクトを返そうとすると、私に向かう途中であるため、何もありません。 .findOne()はコールバックを持っていません。この状況で私は何ができますか?react-native-meteor Meteor.collection( 'xxx')。findOne()はコールバックを作る方法を定義していません
handleLogin =() => {
Meteor.loginWithPassword(this.state.loginField,this.state.passwordField,(error)=>{
if (!error) {
Meteor.subscribe('xxx')
let data = Meteor.collection('xxxy').findOne();
console.log(data);
}
}
}