Skip to content

Passing array to connectFirestore transforms it to null #8

@Olovorr

Description

@Olovorr

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions