Skip to content

Conversation

@sergeysova
Copy link
Member

const originalFx = createEffect(() => {
  // your logic
})

const derivedFx = attach({ effect: originalFx })

inspired by: effector/patronum#79

@sergeysova sergeysova requested a review from zerobias October 7, 2020 12:16
@sergeysova sergeysova marked this pull request as draft October 7, 2020 12:16
@sergeysova sergeysova marked this pull request as ready for review October 7, 2020 14:24
@doasync
Copy link
Member

doasync commented Oct 7, 2020

It doesn't attach anything

@sergeysova
Copy link
Member Author

@doasync Do you have any suggestions?

@zerobias
Copy link
Member

zerobias commented Oct 8, 2020

attach new effect to given one

@doasync
Copy link
Member

doasync commented Oct 8, 2020

attach new effect to given one

Oh, well, then, yeah, okay 👌

Copy link
Member

@zerobias zerobias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splendid pr, thanks!

@zerobias zerobias merged commit 007422b into master Oct 9, 2020
@delete-merged-branch delete-merged-branch bot deleted the feat/attach-without-source-and-mapParams branch October 9, 2020 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants