This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-28
Channels
- # aws (1)
- # beginners (30)
- # boot (7)
- # cider (52)
- # clara (91)
- # cljs-dev (33)
- # cljsjs (1)
- # clojure (447)
- # clojure-brasil (3)
- # clojure-dev (16)
- # clojure-dusseldorf (5)
- # clojure-filipino (1)
- # clojure-italy (29)
- # clojure-sanfrancisco (5)
- # clojure-spec (62)
- # clojure-uk (37)
- # clojurescript (145)
- # clojurewerkz (1)
- # code-reviews (12)
- # community-development (157)
- # cursive (5)
- # datascript (1)
- # datomic (27)
- # editors (42)
- # emacs (5)
- # fulcro (31)
- # hoplon (2)
- # jobs (2)
- # keechma (1)
- # lumo (31)
- # off-topic (2)
- # om (1)
- # onyx (13)
- # parinfer (8)
- # re-frame (13)
- # reagent (32)
- # remote-jobs (4)
- # shadow-cljs (103)
- # spacemacs (15)
- # specter (10)
- # sql (1)
- # tools-deps (35)
- # unrepl (13)
@cjsauer oops, not without attaching a debugger and calling it from console
hi all, I've done my first clojure project in re-frame. I rewrote an angular project just to get experience. I was hoping that someone would be willing to code review it, preferably someone good, opinionated, and rude is perfectly fine.
BTW. the project was rewritten from angular to angular +nrgx and went from 5k loc to 2.5k loc then the rewrite to re-frame brought it to > 1k with the hiccup (2.5k didn't include html)
If anyone is interested PM me, I can also send a little litecoin your way for the help.
I see there’s https://github.com/Day8/re-frame/blob/master/docs/Effects.md#order-of-effects so I guess I should explain in an issue
What’s the most idiomatic way to issue an ajax call when a route changes (or is about to change?) to a particular route?
I’m thinking of having event handlers for e.g. [:route-changed :home] [:route-changed :about]. Both require different ajax calls. Should I instead have one event handler for [:route-changed] and look up the ajax call based on the key?
I think I’m aiming for something like (reg-event-fx [:route-change :home] ...)
but not sure there’s a way to do this that would short circuit (not call the handler) when the route change event argument isn’t :home
. Is there?
WARNING: Use of undeclared Var cljs.tools.reader.reader-types/reader-error at line 9 resources/public/js/compiled/out/rewrite_clj/reader.cljs
WARNING: Wrong number of args (2) passed to cljs.tools.reader/read-token at line 182 resources/public/js/compiled/out/rewrite_clj/reader.cljs
When i turn on day8.re-frame-10x.preload
in my project.clj (in :preloads
), I see the above warnings. When I remove it, the warnings go away. Should I be concerned about these, or are they a known issue? If not, what's the best way to find out what's happening? Thanks! I started from the re-frame template with +aliases +10x
.Open an issue, that doesn't sound right