We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have tried to clean up a bit. It's a great sample! Indeed, Flow seems not so useful here.. Some thoughts/tasks:
The text was updated successfully, but these errors were encountered:
For async login, this could work:
let u : Var<string> = ... let p : Var<string> = ... let input : Var<Credentials> = ... let output = input.View |> View.MapAsync (fun cred -> async { let! ok = Server.Check cred if ok then .. else .. }) let onLogin () = input.Value <- Credentials.Create u.Value p.Value
This avoids the checking-on-every-sneeze, and uses Async support in the view layer, kind of.
Need to think about feeback a bit - the end result of this seems to contribute to LoggedIn: View<option<User>>. Currently too many Vars..
LoggedIn: View<option<User>>
Sorry, something went wrong.
No branches or pull requests
I have tried to clean up a bit. It's a great sample! Indeed, Flow seems not so useful here.. Some thoughts/tasks:
The text was updated successfully, but these errors were encountered: