Skip to content

Conversation

@Ubax
Copy link

@Ubax Ubax commented Mar 17, 2021

Motivation

When using arrays in props it is often a better solution to use ReadonlyArray. This way, the array cannot be modified in the component that uses it and it is easier to find bugs.

@gorhom
Copy link
Owner

gorhom commented Mar 18, 2021

thanks @Ubax, for submitting this pr 👏

@gorhom gorhom merged commit 3abe599 into gorhom:master Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants