This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-31
Channels
- # aleph (3)
- # aws (5)
- # beginners (65)
- # boot (17)
- # cljs-dev (112)
- # cljsrn (5)
- # clojure (146)
- # clojure-austin (3)
- # clojure-dusseldorf (3)
- # clojure-italy (18)
- # clojure-norway (13)
- # clojure-russia (84)
- # clojure-serbia (5)
- # clojure-spec (24)
- # clojure-uk (84)
- # clojurescript (204)
- # css (1)
- # cursive (21)
- # data-science (3)
- # datascript (21)
- # datomic (26)
- # emacs (5)
- # euroclojure (1)
- # hoplon (8)
- # jobs (7)
- # jobs-discuss (2)
- # keechma (35)
- # lumo (92)
- # mount (1)
- # nrepl (2)
- # numerical-computing (16)
- # off-topic (10)
- # om (58)
- # re-frame (13)
- # reagent (90)
- # remote-jobs (2)
- # ring-swagger (1)
- # spacemacs (9)
- # specter (6)
- # unrepl (17)
- # untangled (56)
- # yada (2)
@jfntn I couldn't replicate your problem exactly in my tests can you see if https://github.com/Day8/re-frame-test/pull/8 fixes it?
@stuartmitchell Thanks for looking into this. Unfortunately our project is not setup to track this dependency from source, so I can’t easily test your solution right away. I’d just like to point out that I didn’t try calling rf/dispatch
but instead used the :dispatch
fx similarly to what you did here: https://github.com/Day8/re-frame-test/pull/8/files#diff-c7aea391450744f10c64afb23c3f30c4R149 Curious why this ended up commented out!
@jfntn probably fat fingers, I have fixed that now.
If you can
git clone
git checkout pr-fix-dispatch-fx-issue
lein install
then build your project
I was just wondering as I couldn't replicate your error exactly (I had another similar one).
Probably an artefact of the strange testing a testing framework setup happening here.
@danielgrosse I much prefer the normalized approach to rf databases
I've tried both and have pretty much fully migrated away from nesting data at this point
@danielgrosse in my app-db I have 2 areas:
:app
namespace; Where I store current page, current user, current path. 0
nested. All flat. All parameter to user "goes back to actual state" was here.
:api
namespace; where I store the response from server. Here have some nested and indexed data.
Does anyone have a lein template for an electron + figwheel + re-frame + re-com app?
i'm currently looking at https://github.com/Gonzih/cljs-electron and assume i can just bolt in re-frame & re-com as requires and I'm good, but not 100% sure
I now normalized the data and created a tree to save the structure. A subscription parses this tree and rebuilds the whole data for the component.
@sandbags: If you're reasonably comfortable with adding dependencies, both re-frame and re-com are pretty straightforward to add in. re-com has some CSS requirements that you'll have to make sure of, and you'll lose the structure that you would get in the a re-frame specific template, but other that that it shouldn't be too bad.