Question regarding ConfigError and how to handle it.
In my code I use Effect.partition to get both errors and successes back. I store errors in
errors
errors
variable.
They are of type
(MyCustomError|ConfigError)[]
(MyCustomError|ConfigError)[]
, but then when I try to use
Effect.all(errors).pipe(... anything else here
Effect.all(errors).pipe(... anything else here
I get this error from the LSP:
What gives? I was expecting to handle ConfigError as I would handle any other taggedError?
But If I catch that error using catchTag inside the partition effect, then I can use Effect.all normally. ConfigError is being produced from a service layer