-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Improve perf #1076
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
Improve perf #1076
Conversation
|
why purecomponent is not a good choice here? |
|
@sibelius because that cause issue on large list of messages (+200). Too much memory usage due to the deep shallow equal (blank screen, crash). |
|
Good enough for me |
|
Is expo snack working? Code looks good for me |
|
This PR is super buggy, for a bunch of reasons. It means that if you change any property in a message (like pending etc), the FlatList will not re-render because of the There's also bigger isssues in the PR - in that I highly recommend using flow for things like this, it would have picked this up immediately - rather than merging something in that will break everyone's code. |
|
Hi @ChrisEdson, Really sorry about that. We surely can just change MessageContainer extends BTW what do you mean using flow? |
|
@ChrisEdson please review: #1101 |
|
Ah sorry my comment sounded really mean! I just mean adding Flow (or TypeScript). Then it would flag that you were trying to access |
|
@ChrisEdson TypeScript is just better. I really don't want to introduce Flow. So migrate to TypeScript?!? Just need to know if enough contributor will continue or not? So please vote here with an 👍 if you see it ;) See here an example of a small package in TypeScript: https://github.com/xcarpentier/react-native-safe-image |
|
I've no used typescript yet, but I think is better than JavaScript. I want to learn it. So, go ahead. |
#1048