react-native-onyx 1.0.46 → 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.
@@ -449,7 +449,7 @@ function keysChanged(collectionKey, partialCollection) {
449
449
  // returned by the selector.
450
450
  if (subscriber.selector) {
451
451
  subscriber.withOnyxInstance.setState((prevState) => {
452
- const previousData = reduceCollectionWithSelector(prevState[subscriber.statePropertyName], subscriber.selector, subscriber.withOnyxInstance.state);
452
+ const previousData = prevState[subscriber.statePropertyName];
453
453
  const newData = reduceCollectionWithSelector(cachedCollection, subscriber.selector, subscriber.withOnyxInstance.state);
454
454
 
455
455
  if (!(0,fast_equals__WEBPACK_IMPORTED_MODULE_2__.deepEqual)(previousData, newData)) {
@@ -579,7 +579,7 @@ function keyChanged(key, data, canUpdateSubscriber) {
579
579
  };
580
580
  const prevDataWithNewData = {
581
581
  ...prevData,
582
- [key]: getSubsetOfData(data, subscriber.selector, subscriber.withOnyxInstance.state)
582
+ ...newData
583
583
  };
584
584
  if (!(0,fast_equals__WEBPACK_IMPORTED_MODULE_2__.deepEqual)(prevData, prevDataWithNewData)) {
585
585
  _metrics_PerformanceUtils__WEBPACK_IMPORTED_MODULE_8__.logSetStateCall(subscriber, prevData, newData, 'keyChanged', key);