dotnet-websharper / core

WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
593 stars 52 forks source link

Record base remote implementation does not use the proper decode functionality #1358

Closed Jooseppi12 closed 10 months ago

Jooseppi12 commented 10 months ago

Given the following F# code:

type RecordRemote =
        {
            [<Remote>]
            R4 : unit -> Async<string list>
        }

The output for this is:

return Bind((new AjaxRemotingProvider()).Async("RecordRemote/R4", [_1]), (o) => Return(o));

The problem is that the o value, before passed to the Return function, should go through a Decode* function call to properly deserialize.