createEffect handler with several arguments #477
Answered
by
zerobias
Aleksey-Danchin
asked this question in
Q&A
|
Hi, guys! For what reason the handler of createEffect has only one argument? I understand the philosophy of |
Answered by
zerobias
Apr 2, 2021
Replies: 2 comments
|
Because it's not extendable and testable. The more args than more painful to test and refactor. Highly recommend to look at this |
0 replies
|
Second argument doesn’t make sense in reactive dataflow. What does it mean to forward to effect with pair of arguments? You need to invent multi-value return at first |
0 replies
Answer selected by
sergeysova
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Second argument doesn’t make sense in reactive dataflow. What does it mean to forward to effect with pair of arguments? You need to invent multi-value return at first