Skip to content

Commit c1a9620

Browse files
committed
github-issues fixes
1 parent 6c41f31 commit c1a9620

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/tutorial/github-issues.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export const [useCurrentRepo, currentRepo$] = bind(
263263

264264
const currentRepoAndPage$ = merge(
265265
// When repo changes, update repo and reset page to 1
266-
repoSubject$.pipe(
266+
currentRepo$.pipe(
267267
map((currentRepo) => ({
268268
...currentRepo,
269269
page: 1,
@@ -330,12 +330,8 @@ We need to also make sure that an error won't close this top-level subscription:
330330
:::
331331

332332
```ts
333-
currentRepoAndPage$
334-
.pipe(
335-
switchMapTo(
336-
merge(issues$, openIssuesLen$).pipe(catchError(() => EMPTY))
337-
)
338-
)
333+
merge(issues$, openIssuesLen$)
334+
.pipe(retryWhen(() => currentRepoAndPage$.pipe(skip(1))))
339335
.subscribe()
340336
```
341337

0 commit comments

Comments
 (0)