Update the multiSet
to update subscribers in a more optimized way
#313
Labels
multiSet
to update subscribers in a more optimized way
#313
Problem
Currently, the way
multiset
works is that it notifies subscribers of any changes to the onyx keys in a loop:react-native-onyx/lib/Onyx.js
Lines 985 to 992 in f96fa2d
The performance of this can be improved in relation to collections, where we can see if all the keys are part of a collection, and if so - use keysChanged to update subscribers in a more optimized way.
Solution
Either:
multiset
to support the above, orsetCollection
that is optimized for collectionscc @marcaaron
The text was updated successfully, but these errors were encountered: