react-native-onyx 2.0.16 → 2.0.17

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.
Files changed (2) hide show
  1. package/dist/withOnyx.js +1 -1
  2. package/package.json +1 -1
package/dist/withOnyx.js CHANGED
@@ -78,7 +78,7 @@ function default_1(mapOnyxToState, shouldDelayUpdates = false) {
78
78
  const cachedState = underscore_1.default.reduce(mapOnyxToState, (resultObj, mapping, propertyName) => {
79
79
  const key = Str.result(mapping.key, props);
80
80
  let value = Onyx_1.default.tryGetCachedValue(key, mapping);
81
- if (value === undefined) {
81
+ if (!value && mapping.initialValue) {
82
82
  value = mapping.initialValue;
83
83
  }
84
84
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",