export default connectFirestore(
(db, props) => ({
exampleArray: [],
}),
ExampleComponent
)
The ExampleComponent's props exampleArray is going to be [] in the beggining, and then overwritten to null. We should not mutate types sent into the connectFirestore, unless it is a query.