fsbolero / Bolero

Bolero brings Blazor to F# developers with an easy to use Model-View-Update architecture, HTML combinators, hot reloaded templates, type-safe endpoints, advanced routing and remoting capabilities, and more.
https://fsbolero.io
Apache License 2.0
1.06k stars 54 forks source link

HtmlProvider does not work with Bolero #231

Open sandeepc24 opened 3 years ago

sandeepc24 commented 3 years ago

Please see https://github.com/fsprojects/FSharp.Data/issues/1390

Tarmil commented 3 years ago

I've seen this issue mentioned elsewhere, and the reason that was given was correct -- FSharp.Data uses System.Net.WebRequest, which is not supported on Blazor Wasm. Instead, requests must be done with System.Net.Http.HttpClient.

Now, there is a fork of FSharp.Data here that uses HttpClient; I made it a long time ago for http://tryfsharp.fsbolero.io. It's quite out of date now, but it should be possible to update it.

sandeepc24 commented 3 years ago

Would you consider creating a PR with your changes?

Tarmil commented 3 years ago

Sure. I'll post an issue first to see if there's interest from the maintainers.