Closed danyx23 closed 3 years ago
Hi there @danyx23, thanks for reporting the issue. If you say, the client is failing to deserialize the values, then the issue is probably upstream in Fable.SimpleJson the client uses underneath for deserialization. I have will have a look and let you know of my findings
Can you update Fable.Remoting.Client
from v7.2 to v7.3 and confirm that the issue is fixed? Thanks :smile:
Hi @Zaid-Ajaj, yes, issue fixed. Thanks a lot!
Awesome! Thanks for letting me know 🙏 btw you can upgrade Remoting.Client to v7.4 which fixed another issue with nuget that you may or may not have but just in case 😉
I just used Fable.Remoting in the standard current SAFE stack setup to request some values from the server. I later realized that some of the float values were NaN values on the server side but was scratching my head for some time because in the network tab in the browser I saw a successful response as expected but then I never got the success message of the
Cmd.OfAsync.perform
style command that was sent.I switched my model to use float options and coerced NaN values to None which fixed the problem, but I think it would be nice if this were taken care of automatically.
Let me know if you have a preference for how to solve this and if you like I could help with the implementation. Thanks for the great library!