This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-11
Channels
- # aleph (1)
- # aws (4)
- # aws-lambda (5)
- # beginners (85)
- # cider (39)
- # cljs-dev (3)
- # cljsrn (1)
- # clojars (1)
- # clojure (129)
- # clojure-italy (14)
- # clojure-nl (5)
- # clojure-nlp (1)
- # clojure-uk (61)
- # clojurescript (52)
- # cursive (3)
- # datomic (42)
- # duct (3)
- # emacs (9)
- # fulcro (60)
- # graphql (2)
- # juxt (2)
- # keechma (1)
- # leiningen (4)
- # midje (2)
- # off-topic (8)
- # onyx (3)
- # overtone (1)
- # re-frame (22)
- # reagent (51)
- # reitit (3)
- # remote-jobs (3)
- # ring (4)
- # ring-swagger (1)
- # rum (4)
- # shadow-cljs (14)
- # specter (28)
- # tools-deps (85)
- # vim (9)
Hi, I'm following the tutorial for
https://github.com/Day8/re-frame-template#deploy-to-heroku-if-using-handler
However when i do the the step git push heroku master
I get a exception
remote: Caused by: clojure.lang.ExceptionInfo: No such namespace: day8.re-frame.tracing, could not locate day8/re_frame/tracing.cljs, day8/re_frame/tracing.cljc, or JavaScript source providing "day8.re-frame.tracing" in file /tmp/build_51664e52c171448f82df7b0f77921cd5/src/cljs/ccsoli/events.cljs {:tag :cljs/analysis-error}
Used these profiles:
lein new re-frame ccsoli +less +10x +re-frisk +test +aliases +handler +routes +re-pressed +re-com
Is this an issue with heroku or perhaps re-frame-template?
Apologies if this is the wrong place.I’ve got re-frisk and 10x working side by side in one project. I wouldn’t push them to prod, though 🙂
When Heroku runs the project it uses
lein uberjar
The project readme says to use
lein with-profile uberjar
So i just added those to the heroku env vars more or less and it works
re-frame gui setting defaults: put them in the db in the beginning, or use default clauses in subs, when the requested part of db doesn't exist?
I can see the point of seeing the starting state of the db in one place, but then the meaning is disconnected compared to being right there with the subscription handler code
I tend to have a namespace like my-project.db
that does something like
(ns my-project.db
(:require [my-project.module1 ;as mod1]
[my-project.module2 :as mod2]
... etc)
(def db-defaults {:some-top-level-val :foo
:mod1 mod1/db-defaults
:mod2 mod2/db-defaults
...)
so as I have specific modules or components or whatever, I define their db defaults (with def
) in the module or component ns, and include them in the top-level parent.
Or for more complex subsystems, just repeat the process, like a tree.
I use def
instead of defining a function because my default values don’t change. Other functions might redefine a db value later, like if I want to reset a form, but my initial state is all def
s.
Anyone have a good pattern for click out. Trying to close a dropdown when you click outside the element. Currently have to use a ref. Was wondering if there was a more re-framey way.
Hmh. I seem to get chrome "paused before potential out-of-memory crash" often. Not sure if it's re-frame, reagent, re-frame-10x or my code
Chrome devtools are pretty good for low level stuff
and re-frame-10x is good for a higher level view