-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
When using NonEmptySeq or NonEmptyList from FSharpPlus.Data in the response type, the client gets stuck in the loading state.
Example
type IApi = {
test: unit -> Async<NonEmptySeq<string>>
}let update msg model =
match msg with
| LoadBookings msg ->
match msg with
| Start() ->
let cmd = Cmd.OfAsync.perform api.test () (Finished >> LoadBookings)
{ model with Bookings = Loading }, cmd
| Finished bookingsPage ->
printfn "bookingsPage: %A" bookingsPage // THIS NEVER GETS TRIGGERED
{ model with Bookings = Loaded(bookingsPage) }, Cmd.noneThe frontend does the start command to trigger the request. The request succeeds and responds with:
["Hello","World"]However, the frontend Finished command never gets triggered, and no error seem to be logged.
If I change the type to a native seq it works again.
Is this a bug? (newbie here, could be missing something)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels