We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f2fdbf commit 1d69c68Copy full SHA for 1d69c68
src/hooks/debouncedMemo.ts
@@ -9,7 +9,7 @@ interface NoResult {
9
}
10
11
const isNoResult = <T>(value: T | NoResult, noResult: NoResult): value is NoResult => {
12
- return isObject(value) && '_noResult' in value && value._noResult === noResult._noResult;
+ return isObject(value) && '_noResult' in value && value._noResult === noResult._noResult; //TODO just value === noResult ?
13
};
14
15
type MemoFactory<R> = (noResult: NoResult) => R | NoResult;
0 commit comments