This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
new version rxjs do not work for recompose #748
Comments
I got same issue. import { mapPropsStreamWithConfig } from "recompose"
import { from } from "rxjs"
const rxjsConfig = {
fromESObservable: from,
toESObservable: (stream) => stream
}
// usage
const mapPropsStream = mapPropsStreamWithConfig(rxjsConfig) |
I am having the same issue, |
+1 |
You will need to add the import "symbol-observable";
import { setObservableConfig } from "recompose";
import { from } from "rxjs";
setObservableConfig({ fromESObservable: from }); |
+1 |
Im getting |
Any idea how to solve types with TypeScript? I'm getting
|
Here's a short (crappy) working version for typescript + rxjs v6 import { ComponentEnhancer, mapPropsStreamWithConfig, mapper } from "recompose";
import { Observable, from } from "rxjs";
export const mapPropsStream = mapPropsStreamWithConfig({
fromESObservable: from,
toESObservable: (stream: Observable<any>) => stream
}) as any as <TInner, TOutter>(
transform: mapper<Observable<TOutter>, Observable<TInner>>
) => ComponentEnhancer<TInner, TOutter>
# usage
mapPropsStream<number, number>(
(props$) => props$.pipe(map((n) => n + 1))
) Essentially, manually define |
15 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I use rxjs 6.3.3 with recompose, it give me error of my code:
The error happens on:
node_modules/recompose/rxjsObservableConfig.js:11
TypeError: Cannot read property 'Observable' of undefined
Even if I change the line 11 to:
There is still errors.
The text was updated successfully, but these errors were encountered: