@loganpowell hello and welcome! I personally use lein on all my projects but IIRC @mjmeintjes is using shadow-cljs
@mihaelkonjevic thank you for the warm welcome. It's a true pleasure to be greeted by the creator himself! I've gotten in touch with Matt and will be using his template for my exploration (starting today)!
If you don't mind, I will post my questions here unless you would prefer me to put them on stackoverflow, github or somewhere else. Just let me know.
First question: I'm looking around the docs for keechma toolbox
and noticed that if I click on the same link twice (e.g., <https://keechma.com/api/keechma-toolbox/keechma_toolbox_dataloader_subscriptions/
>) the page is reloaded even though the URL didn't change. I read on the controllers docs (https://keechma.com/guides/controllers/) that "If the previous value [returned from the URL Controller Manager] was not nil and the current value is not nil but those values are same, it won't do a thing". What's causing the rerender?
@loganpowell I’m not sure if you’re asking about the http://Keechma.com site, but that site is a static build, it’s not using Keechma since it’s not a web app
If you’re interested in Keechma app that’s deployed I’d recommend https://gothinkster.github.io/clojurescript-keechma-realworld-example-app/#!login
you can find the codebase here: https://github.com/gothinkster/clojurescript-keechma-realworld-example-app
Ah, I see. Thanks for clarifying. So the actual router is a server-side service not a client side service
it’s not really a server-side service, it’s a bunch of HTML files 🙂
Gotcha, static site served one page request at a time
Ok, one more question 🙏 are there any tutorials online? I'm looking in the "Guides," but I was hoping to find a simple step-by-step for a bare-bones setup somewhere... Something like this one for reagent: http://lotabout.me/orgwiki/reagent.html
oh, just found your annotated source examples. I think I'll start there
@loganpowell there is a lot of stuff in https://keechma.com/news/ - but if there’s anything unclear please ask here and I’ll try to answer asap
@mihaelkonjevic Thank you sir. You are both a generous and patient genius 🙂
Loved this: - Why (are we rendering this UI)? - because the data is present in the AppDB - Why (is this data present in this AppDB) - because controllers placed it in there - Why (did the controllers place this data in the AppDB) - because they were started - Why (were these controllers started) - because their params functions returned the non nil value - Why (did the controllers' params function return the non nil value) - because the route contained the data these controllers were interested in