r/Clojure • • Jan 08 '22

Introducing Kit Framework

https://yogthos.net/posts/2022-01-08-IntroducingKit.html
93 Upvotes

20 comments sorted by

View all comments

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 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.

3

u/yogthos Apr 19 '22

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.