igorkamyshev / farfetched

The advanced data fetching tool for web applications
https://ff.effector.dev
MIT License
191 stars 33 forks source link

Implement $data and $error for mutation also #518

Closed rtatarinov closed 2 weeks ago

rtatarinov commented 2 weeks ago

Why createMutation doesn't have $data and $error as part of API? So, I need to use finished.success or finished.failure, but it completely change the response. For example the finished.failure returns

{
  params: ....,
  error: ....,
}

instead of just error. It's not useful for some case, for example to handle error with condition from patronum.