Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Optimise RoomList and implement quick-search functionality on it. #3654
This is effectively two PRs which ended up getting very entangled:
The latter is slightly controversial, as it deliberately short-circuits React from working out when to re-render the list, given we have no suitable properties to use (short of constantly generating new lists). It also technically doesn't need ConstantTimeDispatcher; it could also be done by calling the method directly on a reference to the right sublist, or even using the existing dispatchers.