This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-24
Channels
- # adventofcode (11)
- # asami (1)
- # babashka (9)
- # beginners (81)
- # calva (85)
- # circleci (4)
- # clojure (32)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-uk (2)
- # clojurescript (28)
- # cursive (5)
- # fulcro (3)
- # honeysql (1)
- # introduce-yourself (1)
- # jobs-discuss (1)
- # missionary (1)
- # off-topic (1)
- # other-languages (42)
- # re-frame (12)
- # releases (1)
- # shadow-cljs (1)
Given that the new recommended way to write reg-event-fx
handlers is to only return :db and :fx keys in the returned map, and that :fx should now be a vector of map entries/2-value vectors, should the example code in the tutorial/documentation be rewritten in that style? Stuff like this: http://day8.github.io/re-frame/dominoes-30k/#domino-3-effect-handling
I’m willing to open a PR if this is desired
I think that would be best. Day8 guys are quite welcoming with documentation fixes, and just a message here will definitely get lost. And if not a PR, then at least an issue should be made, if there isn't one already.
here’s my go at it. i’m not well-versed with writing documentation, so any input would be helpful: https://github.com/day8/re-frame/pull/749
Tho now that I'm looking, the infographics would also have to be updated, which I know nothing about
[:failed-to-compare "16.9.0" "16.9.0" #error {
:cause "Cannot invoke \"Object.getClass()\" because \"target\" is null"
:via
[{:type java.lang.NullPointerException
:message "Cannot invoke \"Object.getClass()\" because \"target\" is null"
:at [clojure.lang.Reflector invokeInstanceMethod "Reflector.java" 97]}]
:trace
[[clojure.lang.Reflector invokeInstanceMethod "Reflector.java" 97]
[shadow.cljs.devtools.server.npm_deps$make_engine invokeStatic "npm_deps.clj" 39]
[shadow.cljs.devtools.server.npm_deps$make_engine invoke "npm_deps.clj" 32]
[shadow.cljs.devtools.server.npm_deps$fn__17833$fn__17834 invoke "npm_deps.clj" 46]
[clojure.lang.Delay deref "Delay.java" 42]
[clojure.core$deref invokeStatic "core.clj" 2320]
[clojure.core$deref invoke "core.clj" 2306]
[shadow.cljs.devtools.server.npm_deps$fn__17833$fn__17836 invoke "npm_deps.clj" 52]
[shadow.cljs.devtools.server.npm_deps$resolve_conflict invokeStatic "npm_deps.clj" 83]
[shadow.cljs.devtools.server.npm_deps$resolve_conflict invoke "npm_deps.clj" 78]
do you recognize this error?
I created the re-frame template with clj -A:new re-frame-template
Sounds more like a #shadow-cljs issue rather than a re-frame one. Perhaps the template uses old shadow-cljs version?
Can't really reproduce it because I don't know what your :new
alias is doing.
I've been getting this as well in a shadow/re-frame project. Everything still works as far as I can tell so I've just been ignoring it.
https://github.com/omnyway-labs/re-frame-template/tree/HEAD it uses this as a template. I'll try putting stuff on newer versions
Did you run npm install?
here’s my go at it. i’m not well-versed with writing documentation, so any input would be helpful: https://github.com/day8/re-frame/pull/749