Passing array to connectFirestore transforms it to null
Olovorr opened this issue · 0 comments
Olovorr commented
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.