This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-04
Channels
- # architecture (13)
- # bangalore-clj (1)
- # beginners (174)
- # boot (25)
- # cider (65)
- # cljs-dev (10)
- # cljsjs (4)
- # cljsrn (3)
- # clojure (169)
- # clojure-berlin (27)
- # clojure-brasil (32)
- # clojure-greece (3)
- # clojure-russia (31)
- # clojure-sg (4)
- # clojure-spec (6)
- # clojure-uk (74)
- # clojurescript (186)
- # code-reviews (5)
- # css (12)
- # cursive (17)
- # datascript (1)
- # datomic (45)
- # dirac (33)
- # funcool (42)
- # hoplon (25)
- # jobs (6)
- # jobs-discuss (114)
- # lambdaisland (6)
- # leiningen (1)
- # luminus (24)
- # off-topic (86)
- # om (13)
- # om-next (14)
- # onyx (75)
- # perun (2)
- # protorepl (19)
- # re-frame (2)
- # reagent (17)
- # ring-swagger (2)
- # rum (1)
- # slack-help (2)
- # specter (31)
- # test-check (5)
- # timbre (1)
- # untangled (34)
- # vim (8)
when you say bind-queries
, is that the same as conman/bind-connection
? i've tried rerunning that in the repl after sql file changes, and then calling (reset)
to get mount to reinitialise all components, however my code still references the original sql file
bind-connection
should be reloading the function definitions in the namespace, the mount state is only managing the connection itself
ahh thanks for that.. yep i think i may be facing a caching issue. if i call bind-connection
and then call (my-query)
in the repl, it reflects the changed sql file. however if i call (my-query)
from another namespace, it still seems to cache the old value
oh in that scenario it is actually the namespaces that need to be reloaded, not an issue of IDE caching
it's due to the fact that the other namespace references a stale var
after bind-connection
reloads it
ah okay, I've watched so many talks on stateful component management and it all made so much sense but then when I start a new project I totally forget all about it. That's what I like about luminous, encourages best practices by default
I'm somewhat inexperienced with both Clojure and Luminus so forgive if this is silly. I'm following along with the Web Dev with Clojure book and am trying to understand the Reagent section.
I've got some sample code (just an atom, a function which generates a block of html and pulls values from the atom, and a render function) which runs fine in my application core namespace but when I move it into it's own namespace separate from core it isn't running anymore.