kitlangton / zio-app

Quickly create and develop full-stack Scala apps with ZIO and Laminar.
124 stars 33 forks source link

ZIO 2 update broke error propagation to the front #37

Open Esardes opened 2 years ago

Esardes commented 2 years ago

FrontendUtils.fetch used to model the error channel and now assumes the call always returns successfully - returning a UIO[A], so that when a backend call fails, the front still sees a success (but will fail to unpickle the result).

Esardes commented 1 year ago

@kitlangton if you know which direction you want this to take ("rollback" to previous impl of errors, or "pass an Either to the A, or smthg else) I could work on a PR

Esardes commented 1 year ago

@kitlangton I know you're busy so here is me pinging you again to get your thoughts on this