Skip to content

Commit 0e0da6c

Browse files
committed
Improve comment
1 parent 3c8a107 commit 0e0da6c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/hooks/useObservable.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function useObservable<T>(observable: ReadonlyObservable<T>) {
1818
return (observable.peek as any)(true) as T;
1919
} catch(e) {
2020
// The errors seem to get swallowed somewhere in the React machinery, so log them here
21+
// (A normal observable probably won't throw an error, but 'the 'observable' might actually be computed)
2122
// tslint:disable-next-line
2223
console.error("An error occurred while reading an observable", e);
2324
throw e;

0 commit comments

Comments
 (0)