This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-30
Channels
- # babashka (46)
- # beginners (234)
- # bristol-clojurians (4)
- # cider (7)
- # clj-kondo (39)
- # cljdoc (8)
- # cljs-dev (10)
- # cljsjs (10)
- # cljsrn (24)
- # clojure (84)
- # clojure-brasil (7)
- # clojure-europe (12)
- # clojure-germany (4)
- # clojure-italy (3)
- # clojure-nl (41)
- # clojure-spec (17)
- # clojure-uk (66)
- # clojurescript (64)
- # conjure (161)
- # cursive (12)
- # data-science (45)
- # datomic (20)
- # devops (11)
- # docker (2)
- # duct (9)
- # events (7)
- # figwheel (1)
- # figwheel-main (20)
- # fulcro (32)
- # graalvm (5)
- # helix (82)
- # jackdaw (9)
- # jobs-discuss (19)
- # kaocha (11)
- # local-first-clojure (1)
- # malli (6)
- # meander (3)
- # nrepl (12)
- # off-topic (2)
- # other-lisps (15)
- # pathom (14)
- # rdf (6)
- # re-frame (8)
- # reactive (1)
- # reagent (5)
- # reitit (4)
- # rum (3)
- # shadow-cljs (77)
- # spacemacs (3)
- # sql (9)
- # test-check (31)
- # tools-deps (13)
- # vim (62)
- # xtdb (18)
@pattruong Perhaps you could use re-frame-template to create a simple app. That will supply you with a known-good formulation. And then compare what it generates with what you have - look for the differences.
what is the best way to achieve the kind of routing implemented by react-router where when you click a link on any page, the browser does not perform a reload? I was thinking a potential way of doing this is creating a reagent component that encapsulates a HTML `<a>` tag that receives click events but calls `(. e preventDefault)` on them. Does anyone here have thoughts on this?
Learn Re-Frame covers that - https://www.learnreframe.com - I think there's a free version as well
Hello everyone, I’m new to re-frame and I was wondering if it’s possible to edit your app-db in REPL for testing purposes?
I have a basic app-db that looks like this: {:color "blue" :message "I'm the default message"}
Here are the steps that led me into some trouble:
1. I navigated to this namespace in my REPL: (in-ns 're-frame.db)
and inspected app-db
which gave me the correct atom.
2. I then did a test to see if I could change my color to "red"
which seemed to be correct with (assoc @app-db :color "red")
(returned {:color "red", :message "I'm the default message"}
).
3. So I then did a swap command: (swap! app-db (assoc @app-db :color "red"))
, but then got nil
as a result.
Can someone point out where I went wrong in my logic above? Much appreciated 🙂
@pattruong you are calling swap!
wrong... try (swap! app-db assoc :color "red")
... (which i haven't verified myself, cos I'm afk)
@mccraigmccraig thanks! That worked 🙂