react-native-onyx 1.0.27 → 1.0.29

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.
@@ -1014,7 +1014,7 @@ function keyChanged(key, data, canUpdateSubscriber) {
1014
1014
  // returned by the selector and only if the selected data has changed.
1015
1015
  if (subscriber.selector) {
1016
1016
  subscriber.withOnyxInstance.setState(function (prevState) {
1017
- var previousValue = getSubsetOfData(prevState, subscriber.selector);
1017
+ var previousValue = getSubsetOfData(prevState[subscriber.statePropertyName], subscriber.selector);
1018
1018
  var newValue = getSubsetOfData(data, subscriber.selector);
1019
1019
  if (!(0, _fastEquals.deepEqual)(previousValue, newValue)) {
1020
1020
  return (0, _defineProperty2.default)({},
@@ -2228,7 +2228,7 @@ function logSetStateCall(mapping, previousValue, newValue, caller, keyThatChange
2228
2228
 
2229
2229
  Object.defineProperty(exports, "__esModule", ({ value: true }));exports.decorateWithMetrics = decorateWithMetrics;exports.getMetrics = getMetrics;exports.resetMetrics = resetMetrics;exports.printMetrics = printMetrics; // For web-only implementations of Onyx, this module will just be a no-op
2230
2230
 
2231
- function decorateWithMetrics() {}
2231
+ function decorateWithMetrics(func) {return func;}
2232
2232
  function getMetrics() {}
2233
2233
  function printMetrics() {}
2234
2234
  function resetMetrics() {}