This code works in default ascending but as soon as I feed desc in orderby, it returns empty.
return bindFirestoreRef(
'codesBatch',
codeCollection
.orderBy('createdOn', 'desc')
.limit(payload.limit || 3)
.startAfter(state.loadMoreLastCode || null),
.orderBy()'desc' doesn't work with.startAfter()null.The first call has to be without
.startAfter()and for later, the above code will work.