createEffect handler with several arguments #477
-
Hi, guys! For what reason the handler of createEffect has only one argument? I understand the philosophy of |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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