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
orr
Hi!
Having this minimal example and using the current master
module Main where import Prelude import Concur.React.DOM as D import Concur.React.Run (runWidgetInDom) import Control.MultiAlternative (orr) import Debug.Trace (traceM) import Effect (Effect) import Effect.Aff.AVar as AVar import Effect.Aff.Class (liftAff) main :: Effect Unit main = do runWidgetInDom "main" do avar <- liftAff $ AVar.empty text <- orr [liftAff $ AVar.take avar, (liftAff $ AVar.put "hello" avar) *> D.text "old view"] traceM text D.text text
does output the correct console log (traceM) but still displays the old view. The problem can be "fixed" by
traceM
old view
pulse
take
I've looked into the code and found a reference to #16 which seems like a similar issue.
The text was updated successfully, but these errors were encountered:
Thanks for the report! I'm looking into this.
Sorry, something went wrong.
ajnsit
No branches or pull requests
Hi!
Having this minimal example and using the current master
does output the correct console log (
traceM
) but still displays theold view
.The problem can be "fixed" by
pulse
to thetake
widget, which feels arbitrarytake
widget the last inorr
, which does destroy the order in the viewI've looked into the code and found a reference to #16 which seems like a similar issue.
The text was updated successfully, but these errors were encountered: