Fork me on GitHub
#untangled
<
2017-07-05
>
adambrosio06:07:30

@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?

tony.kay06:07:38

doesn’t ring a bell

tony.kay06:07:21

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

tony.kay09:07:49

Just updated the CHANGELOG (on develop) to reflect the additions

urbank20:07:01

When if ever would you advise against using initialAppState ?

tony.kay20:07:25

@urbank it has a purpose you always want

tony.kay20:07:35

setting up the app state for the initial UI.

tony.kay20:07:13

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.

tony.kay20:07:32

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

tony.kay20:07:56

(by constructor functions, I mean defn of things like make-that-state)

urbank20:07:26

@tony.kay Got it. Previously I had almost tried to delegate all my state management to initialAppState.

urbank21:07:18

I'm getting this when requiring untangled.client.core

urbank21:07:54

[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.671"]

urbank21:07:14

not 1.9 clojure 1.8

urbank21:07:46

Yeah, it seems to work with 1.9, but then spacemacs cider doesn't. I'll go ask on the clojure channel

wilkerlucio21:07:27

@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

urbank21:07:04

@wilkerlucio Yeah, figured I'd have to update. Was stalling because only 1.8 immediately worked in spacemacs.

wilkerlucio21:07:14

you can check with people at #emacs, they might have a solution over there 😉

urbank21:07:09

@wilkerlucio Thanks, but they already sorted me out in the clojure channel 🙂

wilkerlucio22:07:22

glad to hear 🙂