react-native-onyx 2.0.108 → 2.0.109
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/useOnyx.js +1 -1
- package/package.json +1 -1
package/dist/useOnyx.js
CHANGED
|
@@ -204,7 +204,7 @@ function useOnyx(key, options, dependencies = []) {
|
|
|
204
204
|
// we log an alert so it can be acknowledged by the consumer. Additionally, we won't log alerts
|
|
205
205
|
// if there's a `Onyx.clear()` task in progress.
|
|
206
206
|
if ((options === null || options === void 0 ? void 0 : options.canBeMissing) === false && newStatus === 'loaded' && !isOnyxValueDefined && !OnyxCache_1.default.hasPendingTask(OnyxCache_1.TASK.CLEAR)) {
|
|
207
|
-
Logger.logAlert(`useOnyx returned no data for key with canBeMissing set to false
|
|
207
|
+
Logger.logAlert(`useOnyx returned no data for key with canBeMissing set to false for key ${key}`, { showAlert: true });
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
return resultRef.current;
|