This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-28
Channels
- # arachne (2)
- # aws (5)
- # aws-lambda (5)
- # beginners (4)
- # boot (25)
- # cljs-dev (270)
- # cljsjs (1)
- # cljsrn (72)
- # clojars (5)
- # clojure (201)
- # clojure-belgium (5)
- # clojure-brasil (4)
- # clojure-italy (2)
- # clojure-korea (2)
- # clojure-russia (24)
- # clojure-spec (24)
- # clojure-uk (22)
- # clojurebridge (1)
- # clojurescript (125)
- # cloverage (3)
- # cursive (41)
- # datomic (37)
- # dirac (4)
- # emacs (2)
- # hoplon (421)
- # lein-figwheel (1)
- # leiningen (5)
- # luminus (2)
- # mount (1)
- # off-topic (18)
- # om (44)
- # om-next (4)
- # onyx (44)
- # pedestal (3)
- # proton (9)
- # re-frame (21)
- # reagent (21)
- # ring-swagger (12)
- # specter (9)
- # sql (2)
- # untangled (62)
- # vim (16)
Am I understanding correctly that interceptors, in this context: https://github.com/Day8/re-frame/blob/master/examples/todomvc/src/todomvc/events.cljs...
todo-interceptors
... wherein the only "part" of the app-db that those handlers have access to is the "todos" portion, is done so to purposely limit the parts of the app-db that any particular handler can modify?
When my browser auto-fills an input (saved un/pw for example), it isn't triggering the on-change of my component
seems like this is just known behaviour in many browsers, wondering if there's any good re-frame/reagent workaround
@samueldev re: your first question, yep - it’s done by this interceptor here: https://github.com/Day8/re-frame/blob/master/examples/todomvc/src/todomvc/events.cljs#L34
I know of the code here https://github.com/Day8/re-frame/blob/master/examples/todomvc/src/todomvc/subs.cljs
I'm in the middle of updating fro register-sub
and there are a few places where I'm using dependent signals and can't figure out how to adapt them
I'm doing similar things to the first example here from the readme: https://github.com/Day8/re-frame#a-more-efficient-signal-graph
@mattly if i understood correctly, you could use something like https://github.com/Day8/re-frame/blob/master/examples/todomvc/src/todomvc/subs.cljs#L130 (after registering each of the dependent reactions as a sub)
eh I had inline reactions instead of first-class subscriptions, similar to the place in the readme I linked to
basically I turned those into first-class subscriptions, even though they're single-purpose
is there any way to turn off the console warnings for overriding event and sub handlers?
@mattly you can swap out the loggers for your own ones
but that’s a brute force solution
Is this what you’re after? https://github.com/Day8/re-frame/issues/204