This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-22
Channels
- # architecture (9)
- # beginners (90)
- # cider (98)
- # cljs-dev (23)
- # cljsrn (4)
- # clojure (101)
- # clojure-brasil (3)
- # clojure-dev (48)
- # clojure-italy (15)
- # clojure-losangeles (3)
- # clojure-russia (12)
- # clojure-uk (17)
- # clojured (1)
- # clojurescript (141)
- # community-development (15)
- # core-async (1)
- # datascript (12)
- # datomic (18)
- # docker (3)
- # emacs (1)
- # events (1)
- # figwheel (1)
- # fulcro (57)
- # graphql (4)
- # javascript (9)
- # jobs (1)
- # lein-figwheel (1)
- # leiningen (1)
- # lumo (1)
- # off-topic (68)
- # om (9)
- # om-next (3)
- # onyx (4)
- # parinfer (6)
- # pedestal (14)
- # portkey (2)
- # proton (1)
- # protorepl (19)
- # re-frame (57)
- # reagent (46)
- # ring-swagger (12)
- # shadow-cljs (167)
- # slack-help (5)
- # specter (18)
- # sql (1)
- # uncomplicate (3)
- # unrepl (1)
As I see, dispatch-n is a doseq dispatch. How about side effects? Do it control concurency at ALL?
@fabrao can you explain your question further? re-frame processes events in the order they are received, and runs all fx synchronously (of course an fx can itself make an async action)
dispatch-n itself is only dispatching the events onto the re-frame queue
@feihong.hsu can you share a snippet that shows what you're doing in your click handler and what you're doing in your effect handler?
@seako click handler: https://github.com/feihong/re-frame-quickstart/blob/master/src/cljs/quickstart/views.cljs#L105 effect handler: https://github.com/feihong/re-frame-quickstart/blob/master/src/cljs/quickstart/events.cljs#L130
i tried to start this project with lein figwheel
but when i point my browser at localhost it renders the figwheel 404
nothing is popping out at me just glancing at the code. i think if i were able to poke around in the running application i might be able to find something.
@seako i also tried creating a much simpler project to try to isolate the problem, but unfortunately, everything works fine. so there is something else going on.
https://github.com/feihong/web-speech-quickstart/blob/master/src/cljs/demo/views.cljs
@feihong.hsu Sorry for not addressing the question you're actually asking (not very familiar with the speechSynthesis api), but regarding your comment ; Is there a way to turn this into a pure function?
in your code:
The answer is reg-fx
https://github.com/Day8/re-frame/blob/master/docs/Effects.md#extensible-side-effects
It is really a weird question, but has anyone experienced a subscription constantly returning a #<Reaction : nil>
at the cljs-repl?
> Improve cache eviction behaviour of subscription caches. In more complex applications a subscription may have been unnecessarily created and destroyed several times after a Figwheel re-render.
I did find the line above in the changelog so I upgraded re-frame but issue still seems to persist...
subscriptions do, indeed, return a reaction.
Stick a @
in front to obtain the value
I wonder if re-frame-10x
would help you to figure out what's happening
You can look at subs
tab
Yeah, I'm not sure of your intent in looking at a subscription at the repl
If you simply want to see what value it currently has, then re-frame-10x is what you neeed
running subscriptions in the repl is very helpful though...I wouldn't dismiss the idea 🙂
if you js/console.log
the result of a subscription and you have cljs-devtools
installed/enabled, you can interactively explore the data in the console btw
(of course re-frame-10x solves all of that but...)
I did have to disable it after finding that it somehow makes the React components stop working in weird ways, but good stuff non the less!
@iku000888 I'd be keen to get a more specific bug report for any problems you encountered
@iku000888 which version of react are you using?
Hi @danielcompton The specific project was "react-dom": "15.5.4"
and the thing that stopped working was http://blueprintjs.com/docs/v1/#datetime/daterangeinput
@iku000888 so just to be clear, you are saying that this React component stopped working when you inistalled re-frame-10x
or it stopped working when you started tracing with re-frame-10x
?
And when you say it stopped working, can you be more specific? What should we look for?
Thanks for your patience. installing(regardless of tracing/not) re-frame-10x itself caused the react component under question to stop working
and yeah I would love to give a nice isolated repro but this project uses a rather non trivial set up with webpack etc...
Do you mean that when you just added the dependency it stopped working?
Also did you follow https://github.com/Day8/re-frame-10x#important-prerequisites?
my mistake
just fixed docs
> and by stop working, I mean I cannot get rid of the pop out once visible Which popout? the re-frame-10x panel or your date one?