react-native-onyx 1.0.27 → 1.0.28
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
|
@@ -523,7 +523,7 @@ function keyChanged(key, data, canUpdateSubscriber) {
|
|
|
523
523
|
// returned by the selector and only if the selected data has changed.
|
|
524
524
|
if (subscriber.selector) {
|
|
525
525
|
subscriber.withOnyxInstance.setState((prevState) => {
|
|
526
|
-
const previousValue = getSubsetOfData(prevState, subscriber.selector);
|
|
526
|
+
const previousValue = getSubsetOfData(prevState[subscriber.statePropertyName], subscriber.selector);
|
|
527
527
|
const newValue = getSubsetOfData(data, subscriber.selector);
|
|
528
528
|
if (!deepEqual(previousValue, newValue)) {
|
|
529
529
|
return {
|