Skip to content

Commit cdbd255

Browse files
author
Christoph Pader
committed
fix: typo
1 parent 9134e7e commit cdbd255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/useOnyx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function useOnyx<TKey extends OnyxKey, TReturnValue = OnyxValue<TKey>>(key: TKey
118118
const getSnapshot = useCallback(() => {
119119
// We get the value from the cache, supplying a selector too in case it's defined.
120120
// If `newValue` is `undefined` it means that the cache doesn't have a value for that key yet.
121-
// If `newValue` is `null` or any other value if means that the cache does have a value for that key.
121+
// If `newValue` is `null` or any other value it means that the cache does have a value for that key.
122122
// This difference between `undefined` and other values is crucial and it's used to address the following
123123
// conditions and use cases.
124124
let newValue = getCachedValue<TKey, TReturnValue>(key, selectorRef.current);

0 commit comments

Comments
 (0)