Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: changes all arrays to ReadonlyArray #350

Merged
merged 1 commit into from
Mar 18, 2021

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