Check ReEffects and `attach` compatibility
yumauri opened this issue · 2 comments
yumauri commented
As I see now, most probably ReEffect will not work with attach
.
Maybe there is a way exists to make them compatible?
Tauka commented
Hi! I tried it, and it seems to work with attach with exception of typings.
[tsserver 2769] [E] No overload matches this call.
Overload 2 of 2, '(config: { effect: Effect<any, any, any>; mapParams: (params: unknown) => any; }): Effect<unknown, any, any>', gave the following error.
Type 'ReEffect<GetEventIntensityByStreamIdApiV1EventstatisticsGetRequest, EventIntensity[], ApiError>' is not assignable to type 'Effect<any, any, any>'.
Overload 2 of 2, '(config: { effect: Effect<any, any, any>; mapParams: (params: unknown) => any; }): Effect<unknown, any, any>', gave the following error.
Type '({ from, to }: FxGetEventsParams, { streamId, eventType }: GetCombinedValue<{ streamId: Store<string | null>; eventType: Store<EventTypeEnum>; }>) => { ...; }' is not assignable to type '(params: unknown) => any'.
It seems ReEffect is not assignable to Effect from effector
yumauri commented