This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-22
Channels
- # admin-announcements (7)
- # beginners (56)
- # boot (69)
- # cider (168)
- # cljs-dev (2)
- # clojure (170)
- # clojure-austin (25)
- # clojure-beijing (3)
- # clojure-belgium (2)
- # clojure-france (3)
- # clojure-poland (17)
- # clojure-russia (115)
- # clojure-uk (40)
- # clojurebridge (3)
- # clojurescript (87)
- # cursive (9)
- # datomic (30)
- # dirac (18)
- # editors (3)
- # emacs (14)
- # hoplon (195)
- # immutant (14)
- # jobs (3)
- # jobs-discuss (4)
- # leiningen (11)
- # melbourne (5)
- # mount (42)
- # off-topic (5)
- # om (24)
- # onyx (48)
- # parinfer (53)
- # proton (1)
- # protorepl (2)
- # re-frame (3)
- # reactive (2)
- # reagent (29)
- # rum (5)
- # spacemacs (4)
- # untangled (91)
- # yada (1)
A sanity hint for incoming uncaught error:
return or__26549__auto__;
} else {
return dkey;
}
})();
var by_ident_QMARK_ = om.util.ident_QMARK_ <<< ☢ NULL ☢ <<< .call(null,key);
om_plumbing.cljs:27 Uncaught TypeError: Cannot read property 'call' of undefined
Seems likely related to a sequence of WARNING: Use of undeclared Var om.util/ident?
etc. on cljs compile.
@curtosis There was a change made to the latest untangled-client "0.4.7-SNAPSHOT" that is causing this error. We are currently working on a fix.
gotcha. I tried rolling to om alpha32, which fixed the ident?
etc warnings, but not the error. Glad it's not just me, though!
Right. In the latest alpha32 ident? moved to om.util.
oops, I'm wrong - alpha32 fixes the error, too, once one remembers Chrome caches aggressively...
cool.
@currentoor: That auto-reload on todomvc....it reloads, but the reloads are not taking effect for me. Are you using that in dev anywhere where it is working for you?
the make-system is closed over in the user namespace, which means you're getting an old version of the system...so changes are not reflected, I think
yeah, refresh dirs must include user.clj in dev for it to work, but that breaks refresh...this is what I ran into last time I tried to implement it
@tony.kay: just read the UI query security recipe, magnificent! Some very solid ideas. Do you internally implement this like for example a json web token which translates to the user in the env of the server parser?
right, we have a server component injected into the parser called authorizer, which itself injects the handler and install a pre-hook in the ring pipeline to pull out cookies and turn that into a user. All that gets injected into the parsing environment
so, you can pull the authorizer straight from the env, run it on the query/user, and move on
so you don't use the openid component directly in parsing...just the authorizer. But the user stuff is placed on the request, which is also made visible in the parsing env
Awesome approach, hadn't given it a thought
@tony.kay: I'll investigate this weekend. Unfortunately I'm using the system library in my project.
@currentoor: ok, thanks. I think the solution is to move the dev helper functions themselves into untangled-server, so that the atom for holding the system (and watcher) are in the library. The user namespace will need to refresh, and re-initialize yet another atom that holds the "system constructor" function.
sounds like a good approach, thanks!
@tony.kay: we’re not talking about start-figwheel
, just the server helpers start
stop
etc?
talking about the watcher code that was added to trigger auto-hot-reload on server code
might be able to move refresh funcs into server, and ask users to set the constructor function in a reloaded user ns
cool, so you got it working?
i'd like to see what you did
awesome
now has readme, which makes it at least look like the something that it is on github
nice! I just narrowed down a nasty parse problem to something wrong in the client SNAPSHOT version.
(fwiw, I kept seeing No reader function for tag object
in my file that :require
d data-fetch
, but with no clues as to where. File null, line null, column null. Nothing to do but comment everything, then gradually uncomment line by line and build.)
@curtosis: Sometimes, esp on project file changes, it pays to clean the project and restart everything...clears up things like that sometimes
or auto....the auto will keep re-trying on file changes...which is much faster than restarting REPL
Tempid rewrite looks broken on 0.4.7...not sure if it is a glitch in build, or a regression
@ethangracer: are you seeing tempid rewrite working ok with 0.4.7?
definitely not aware of that
tempids are rewriting on survey… ?
thanks for the quick fix!
untangled.client.mutations/toggle!
works well for me in may main app but it fails in the devcards.
The calling component has an ident [dashboard/by-id 123]
.
and when i call (mut/toggle! this :ui/show-edit-menu?)
it replaces :dashboard/by-id {123 {...}}
with :dashboard/by-id {nil {:ui/show-edit-menu? false}}
any suggestions?
hmm, i'm inspecting the props being passed in, when i call toggle!
the component is re-render (as it should be) but all props except :ui/show-edit-menu?
vanish
but this does not happen outside of a devcard
toggle!
is called inside ui-dashboard