Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Check ReEffects and attach compatibility #8

Closed
yumauri opened this issue Jun 8, 2020 · 2 comments
Closed

Check ReEffects and attach compatibility #8

yumauri opened this issue Jun 8, 2020 · 2 comments

Comments

@yumauri
Copy link
Owner

yumauri commented Jun 8, 2020

As I see now, most probably ReEffect will not work with attach.
Maybe there is a way exists to make them compatible?

@Tauka
Copy link

Tauka commented Aug 27, 2020

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
Copy link
Owner Author

yumauri commented Sep 27, 2021

Not actual anymore

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants