hey, thanks for sharing this! i saw the talk scheduled on clojureverse, i'm excited to check it out.
i've been playing with kit and reading integrant source code, trying to figure out why it is that i have to call integrants (reset) when i make changes to a controller function. i remember i didn't have to do this with luminus, but it seems like this is a step backwards with REPL-driven-dev as a work flow, constantly having to switch files to user.clj to run (reset) when i update something.
is it an artifact of using tools.deps instead of leiningen? i'm probably missing something basic about how clojure works -- still somewhat new myself.
Hi, having to call reset is an artifact of the way Integrant manages stateful components. All the components live in a system map, and calling reset causes this map to be refreshed. You don't actually have to switch files in order to call reset though, you can just call (user/reset) from any namespace or directly in the REPL.
2
u/[deleted] Apr 19 '22
hey, thanks for sharing this! i saw the talk scheduled on clojureverse, i'm excited to check it out.
i've been playing with kit and reading integrant source code, trying to figure out why it is that i have to call integrants
(reset)when i make changes to a controller function. i remember i didn't have to do this with luminus, but it seems like this is a step backwards with REPL-driven-dev as a work flow, constantly having to switch files touser.cljto run(reset)when i update something.is it an artifact of using tools.deps instead of leiningen? i'm probably missing something basic about how clojure works -- still somewhat new myself.