I develop web app with React which use firestore.
I try to create new document with data provided as js object:
this.props.firestore.add({collection: 'sample'}, data)
.then((docRef) => {...}
sometimes it works without any problem but in about 50% of tests I get an firebase error: "FIRESTORE (5.5.0) INTERNAL ASSERTION FAILED: Unknown wrong type: symbol"
I use these extensions to handle firestore:
"redux-firestore": "^0.5.8"
"react-redux-firebase": "^2.2.6"
"firebase": "^5.8.4"
Thanks for any help in solving this out!
I finaly solve the problem by making a deep copy of my data object with:
JSON.parse(JSON.stringify(data));
I have no idea what is wrong with the original one. :(