Skip to content

Commit d7d62d8

Browse files
committed
Log key in the log message so it creates one issue per key
1 parent 5fc78f0 commit d7d62d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/useOnyx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function useOnyx<TKey extends OnyxKey, TReturnValue = OnyxValue<TKey>>(
300300
// we log an alert so it can be acknowledged by the consumer. Additionally, we won't log alerts
301301
// if there's a `Onyx.clear()` task in progress.
302302
if (options?.canBeMissing === false && newStatus === 'loaded' && !isOnyxValueDefined && !OnyxCache.hasPendingTask(TASK.CLEAR)) {
303-
Logger.logAlert(`useOnyx returned no data for key with canBeMissing set to false.`, {key, showAlert: true});
303+
Logger.logAlert(`useOnyx returned no data for key with canBeMissing set to false for key ${key}`, {showAlert: true});
304304
}
305305
}
306306

0 commit comments

Comments
 (0)