Questions tagged [bolero]

F# Blazor Elmish Lib Bolero is an F# library giving tools on top of the .NET library Blazor. The library enables easy development and integration with the MVU (Elmish) design pattern.

11 questions
4
votes
1 answer

Bolero (F# Blazor) Debugging

Does someone know how to debug a Bolero project? In particular, is it possible (and how) to debug the client project using and IDE (VS or VS code) or directly in the browser (source mappings)?
Franco Tiveron
  • 2,364
  • 18
  • 34
2
votes
1 answer

F# Code is not sufficiently generic (using a static member constraint)

I'm trying to create a generic function that checks whether a record is in a valid format, given the record implements the static member valid. When trying to use this in an ElmishComponent within the Bolero (Blazor) framework, I'm getting the…
Weebs
  • 435
  • 6
  • 17
1
vote
0 answers

what is the relationship between `CustomOperationAttribute` and the conventional CE Yield member?

The excellent ElementBuilder [GitHub] of Bolero inspires me to try to share/centralize certain HTML-DSL expressions for reuse. So, in almost total ignorance, I start with this: open Bolero open Bolero.Builders open Bolero.Html type ElementBuilder…
rasx
  • 5,288
  • 2
  • 45
  • 60
1
vote
1 answer

F# Bolero how to set the code apart to make the project structure clear?

I'm new to F# and Bolero. and after initialize the project as the docs shows, I find that sample application demonstrates 3 types of web applications but main codes is in one file called Main.fs . here is part codes: type Message = | SetPage of…
Archsx
  • 774
  • 1
  • 11
  • 19
1
vote
0 answers

How to serve a Bolero (F#) web app to the internet?

I'm new to using web servers, and I'm trying to learn the Bolero (F#) web framework. As a learning exercise, I'm trying to put the example app "into production", i.e. serve it to the internet and not just localhost. I would like to use a basic…
1
vote
0 answers

How do I use different CSS files in Bolero pages?

I am new to Bolero. I need two separate layouts both with a separate menu system - one for "normal" web pages, the other for a CMS. That means using two different css files. Is it possible to have two Elmish loops to achieve that? If not, what then?…
1
vote
0 answers

Why does CORS block my fetch in Bolero (F# Blazor) although configuration follows documentation?

I am writing a Bolero (F# Blazor) application, and I am running into some issues regarding CORS when trying to challenge GitHub for authentication. I've handled similar CORS error messages in other languages previously, so CORS isn't that new to me.…
maritio_o
  • 117
  • 10
1
vote
1 answer

Managing HttpClient in a F# WebAssembly app

What is the best practice is to "register" the http client in one place, so it can be reused from this Elmish update function? Instead of having to create it for every request. let update message model = match message with | SetMessage s ->…
Sridhar Ratnakumar
  • 81,433
  • 63
  • 146
  • 187
1
vote
1 answer

Bolero datetime bind

The docs say that you can bind many different data types... My html template:
Callum Linington
  • 14,213
  • 12
  • 75
  • 154
1
vote
2 answers

Is fsbolero's runner, `bolero-live`, open source and if so, where is the source?

I've been having a problem getting a modified bolero app to perform HotReload. The problem appears to be in bolero-live as indicated by this top portion of the error log (line break inserted for convenience). However, the source code for bolero-live…
George
  • 2,451
  • 27
  • 37
0
votes
1 answer

How to make anchors work when switching between two routes in a Bolero F# single-page app

I used html templates and defined navigation bar like this Page1 ...
dude
  • 3
  • 2