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 6c41f31 commit c1a9620Copy full SHA for c1a9620
docs/tutorial/github-issues.md
@@ -263,7 +263,7 @@ export const [useCurrentRepo, currentRepo$] = bind(
263
264
const currentRepoAndPage$ = merge(
265
// When repo changes, update repo and reset page to 1
266
- repoSubject$.pipe(
+ currentRepo$.pipe(
267
map((currentRepo) => ({
268
...currentRepo,
269
page: 1,
@@ -330,12 +330,8 @@ We need to also make sure that an error won't close this top-level subscription:
330
:::
331
332
```ts
333
-currentRepoAndPage$
334
- .pipe(
335
- switchMapTo(
336
- merge(issues$, openIssuesLen$).pipe(catchError(() => EMPTY))
337
- )
338
+merge(issues$, openIssuesLen$)
+ .pipe(retryWhen(() => currentRepoAndPage$.pipe(skip(1))))
339
.subscribe()
340
```
341
0 commit comments