@tony.kay whats the reason for this fully qualified make-system call?
;; untangled-template/dev/server/user.clj
(defn- init [path]
{:pre [(not (started? @system))
(get cfg-paths path)]}
(when-let [new-system (untangled-template.server/make-system (get cfg-paths path))]
(reset! system new-system)))
is it refresh related?doesn’t ring a bell
Updated Things (http://github.com/awkay/untangled): - awkay/untangled : Improved form support is in 1.0.0-beta2-SNAPSHOT (on clojars) - awkay/untangled-template : Sign up page now works (full stack..creates users on server). Uses form support and bootstrap helpers (clone from github).
Just updated the CHANGELOG (on develop) to reflect the additions
When if ever would you advise against using initialAppState ?
@urbank it has a purpose you always want
setting up the app state for the initial UI.
if you mean: which components? : don’t use it on components that are persistent (e.g. come from a server and you load them). It is for setting up UI components for the initial render. E.g. all of the UI tree that needs to be in place before users start using it.
I generally recommend making constructor functions for things that only get created by user events…initial app state is just that: initial UI application state
(by constructor functions, I mean defn
of things like make-that-state
)
@tony.kay Got it. Previously I had almost tried to delegate all my state management to initialAppState.
I'm getting this when requiring untangled.client.core
[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.671"]
not 1.9 clojure 1.8
Yeah, it seems to work with 1.9, but then spacemacs cider doesn't. I'll go ask on the clojure channel
@urbank Untangled depends on Clojure 1.9, it uses spec already, so you are not going to be able to use it with 1.8
@wilkerlucio Yeah, figured I'd have to update. Was stalling because only 1.8 immediately worked in spacemacs.
you can check with people at #emacs, they might have a solution over there 😉
@wilkerlucio Thanks, but they already sorted me out in the clojure channel 🙂
glad to hear 🙂