I am facing an issue while Ordering data based on a parameter. Below is the code snippet.
event_date is a timestamp
db.collection("abc")
.doc("Events")
.collection("List")
.where("event_status", "==", "0")
.orderBy("event_date", "desc").get()
.then(function (querySnapshot) {-------------------});
The error message thrown is,
Uncaught Error: Objects are not valid as a React child (found: Sun Nov 25 2018 17:27:56 GMT+0530 (India Standard Time)). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of Table.