3 ms·
Amazing - thanks for the link. We've had a few people ask about sync now, so something we'll start researching soon. > A bit of feedback, the API looks fairly
by kiwicopple 7y ago
Amazing - thanks for the link. We've had a few people ask about sync now, so something we'll start researching soon.
> A bit of feedback, the API looks fairly verbose compared to Firebase
Thanks for this feedback. I do hope that it's just Next.js cluttering up. Here's a comparison without Next.js:
Realtime Firebase:
db
.collection("cities")
.doc("SF")
.onSnapshot(payload {
console.log("Current data: ", payload.data())
});
Realtime Supabase:
supabase
.from('cities')
.eq('id', 'SF')
.on('UPDATE', payload => {
console.log("Current data: ", payload)
})
.subscribe()