fix: remove legacy code in index.vue
This commit is contained in:
@@ -98,15 +98,15 @@ export function useStreamSubscriber() {
|
|||||||
|
|
||||||
const runAndSubscribe = <T>(
|
const runAndSubscribe = <T>(
|
||||||
stream: Observable<T>,
|
stream: Observable<T>,
|
||||||
next: (value: T) => void,
|
next?: (value: T) => void,
|
||||||
error: (e: any) => void,
|
error?: (e: any) => void,
|
||||||
complete: () => void
|
complete?: () => void
|
||||||
) => {
|
) => {
|
||||||
const sub = stream.subscribe({
|
const sub = stream.subscribe({
|
||||||
next,
|
next,
|
||||||
error,
|
error,
|
||||||
complete: () => {
|
complete: () => {
|
||||||
complete()
|
if (complete) complete()
|
||||||
subs.splice(subs.indexOf(sub), 1)
|
subs.splice(subs.indexOf(sub), 1)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
1514
pages/index.vue
1514
pages/index.vue
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user