Closed Dzoukr closed 5 years ago
Hello there @Dzoukr, do you happen to use the latest Fable compiler? @alfonsogarciacaro said he broke something with reflection in the Result<'a>
type, see this issue
It should have been fixed in v2.1.2, can you please check?
In any case, remoting can handle nested unions without problems, see protocol definition of tabula-rasa which looks very similar to yours
Yes, please try with 2.1.2 or higher, sorry for the trouble. Please ping me if it's still not working.
Damn guys, you are fast! No wonder you are stars of F# OSS world! Yes, that was it, thank you both and sorry for not checking that I'm running on the latest version. Paket outdated
is in my blood now, but yarn outdated
is something I'm still keep forgetting. 😄
Thanks again!
In shared project, I have DU for errors:
and proxy defined as:
On error (in Result), the payload is serialized to:
{"Error":{"DomainError":{"ItemAlreadyExists":"Email"}}}
But when handling on client side, the automatic deserialization fails with:
Is it because of nested union types or there is problem with transfering Result types as such?
Thanks a lot for help