Closed hongbo-miao closed 5 years ago
Not a big thing. Based on above context
const listenToNewMessages = (callback) => { return db.table('messages').listen(newMessage => callback(newMessage)); } // Kick off the listener listenToNewMessages(message => { console.log(message); })
listenToNewMessages is a better fit.
listenToNewMessages
Thanks for the catch!
Not a big thing. Based on above context
listenToNewMessages
is a better fit.