react-native-onyx 1.0.47 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web.development.js +1 -1
- package/dist/web.development.js.map +1 -1
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/lib/Onyx.js +1 -1
- package/package.json +1 -1
package/lib/Onyx.js
CHANGED
|
@@ -364,7 +364,7 @@ function keysChanged(collectionKey, partialCollection) {
|
|
|
364
364
|
// returned by the selector.
|
|
365
365
|
if (subscriber.selector) {
|
|
366
366
|
subscriber.withOnyxInstance.setState((prevState) => {
|
|
367
|
-
const previousData =
|
|
367
|
+
const previousData = prevState[subscriber.statePropertyName];
|
|
368
368
|
const newData = reduceCollectionWithSelector(cachedCollection, subscriber.selector, subscriber.withOnyxInstance.state);
|
|
369
369
|
|
|
370
370
|
if (!deepEqual(previousData, newData)) {
|