Firestore: Date object behaviours


Problem

Firestore now changed they way date object are fetched. 

And you may get an error screen like this one

Vjzn87KBV5YKkViUCwDzaMdcG30NMF5QZeXTk91G.png

Solution

In App/Datapoints/Firebase.js at the end of the file, before export default firebase add this

/**
 *  Fix for latest version on Firestore
 */
const firestore=firebase.firestore();
const settings={
 timestampsInSnapshots:true
}
firestore.settings(settings);
//END FIX