As I delve into learning CycleJS, one thing that has caught my attention is the usage of Cycle's HTTP Driver. It seems that in order to reach the stream level, merging the response stream stream
with RxJS switch/mergeAll
is essential. However, when attempting to implement these functions, a type error occurs: switch is not a function
(on response stream stream).
const response$$ = sources.HTTP
.filter(response$ => response$.request.url === 'http://jsonplaceholder.typicode.com/users/1')
const response$ = response$$.switch()
I am puzzled by this issue and would appreciate any insights on what might be going wrong.