Skip to content

Commit 49b6afe

Browse files
committed
test: correct the error-branch header comment
1 parent 4738b10 commit 49b6afe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/suspenseSubject-error-branch.test.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { mergeMap } from 'rxjs/operators';
66
import { preloadObservable, useObservable } from '../src/index';
77

88
// `catchError(() => EMPTY)` turns a source error into a completion. `_subscribeToStore` reports it to
9-
// `useObservable` without completing, because completing auto-unsubscribes the mounted subscriber and a
10-
// mounted hook with `initialData` then resubscribes in a loop. `_subscribe` completes a direct subscriber.
9+
// `useObservable` without completing, because completing unsubscribes the still-mounted hook, and its
10+
// unmount then no longer evicts the errored entry. `_subscribe` completes a direct subscriber.
1111
describe('SuspenseSubject source errors', () => {
1212
afterEach(() => cleanup());
1313

0 commit comments

Comments
 (0)