This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-26
Channels
- # arachne (80)
- # beginners (76)
- # boot (16)
- # cider (66)
- # cljs-dev (62)
- # cljsjs (1)
- # clojure (106)
- # clojure-dev (5)
- # clojure-greece (2)
- # clojure-italy (9)
- # clojure-russia (1)
- # clojure-spec (61)
- # clojure-uk (130)
- # clojurescript (21)
- # core-async (9)
- # cursive (3)
- # datomic (37)
- # events (41)
- # figwheel (31)
- # fulcro (27)
- # hoplon (1)
- # jobs (2)
- # lumo (11)
- # off-topic (155)
- # re-frame (71)
- # reagent (27)
- # ring-swagger (3)
- # shadow-cljs (132)
- # spacemacs (5)
- # specter (1)
- # sql (37)
- # test-check (10)
- # uncomplicate (5)
- # unrepl (2)
- # yada (3)
So a link is a key at the root level that has as its value a map. And this map is an entity (a table record where there can only ever be one). I'm thinking this entity can't itself have field joins that are Ident/s (single Ident or vector of Idents).
@chrisblom we use it and it’s pretty easy, you can even write your own version of defsc
, based on the original, that just includes a call to sablono.core/html
around the body
or use it around the body like so
(defsc ReportsTab [this {:keys [label
ui/current-user
reports/table]}]
{:initial-state (fn [params]
{:page :reports/index
:label "REPORTS"
:reports/table (om/get-initial-state rep/ReportTable {})})
:query [:page :label
[:ui/current-user '_]
{:reports/table (om/get-query rep/ReportTable)}]}
(html
[:div.app-main-col-content
[:div.row.app-main-panel-title.title-bottom-spacing
[:div.large-12.columns {:style {:padding "0px"}}
[:h1 "All Reports"]]]
(ui-report-table table)]))
hi all, how do i prevent a {:ui/fetch-state ...}
from showing up in place of data when an error happens?
;; initial app-state
{...
:app/things []
}
;; after a load error
{...
:app/things {:ui/fetch-state {...}}
}
;; this messes things up because app/things is a join against an identified component.
[{:app/things (prim/get-query Thing)}]
;; so the parent component receives a weird value instead of []
Note that I’ve already set the :marker
key in the load, so the load status actually shows up in the load table and not in-place. Seems like this could be unintended behavior.@cjmurphy the value at root can be anything, but you are right that the value isn't normalized data.
@levitanong could be a bug if marker is not true
@tony.kay the marker is set to some keyword
Will post an issue
issue up
hi all, what’s the story for code splitting during development? I understand that routing needs to be changed fundamentally to support code splitting, but AFAIK :modules
is only supported in :simple
or :advanced
optimizations.
scratch that, i have outdated information 😅
Any fulcro users use spaceemacs, cider, etc… the tutorials assume cursive. If its not much work to get spacemaacs + cider working i would rather do that as i’m slightly more used to it. If its going to be an on going headache then i’ll just switch over, as i’m a heavy intelliji user in java.
@drewverlee I've been using fulcro with spacemacs & cider. Don't remember running into any issues :)
@drewverlee same here!
@U3LP7DWPR or @U09FEH8GN are these instructions relevant? http://www.photonsphere.org/posts-output/2017-12-19-fulcro-emacs-cider/ They seem different then offical docs: http://book.fulcrologic.com/ i’m a bit confused about the whole nrepl, headless repl business. I might be a good candidate for just sticking with intelliji. But i’ll probably miss parinfer support and the in file eval (i know you can push to the code to the repl).
@drewverlee what i do is similar to the first link but it’s missing a step
namely the dependencies you have to add
but both should work
if you use cider-jack-in, like the book suggests, then cider will inject the necessary dependencies
@drewverlee I am sticking with spacemacs mostly because I'm a split-scree & multiple tabs junky 🙂 Checked out cursive a bit, looks really nice. Don't know about in-file evaluatio but Cursive has parinfer out of the box, it's just not the default 🙂 Not sure I'm using cider right but works for me (start two repls, jack in to them, and start figwheel from a emacs repl buffer).
Thanks a lot of the help!!!!! I’ll keep fiddling with both. Its annoying to switch editors so often as i can’t recall they key bindings. Hm, if parnifer works out of the box then i might switch over. I’ll miss the inline evaluation, but its not really to much different having it presented in the repl screen. I guess i’m not that excited about the amount of configuration i have to do on some clojure projects. Like figwheel is really cool, but when i look at the instructions necessary to set it up on some projects it seems daunting. Like i have an hour after work to get some momentum on something 😞
@drewverlee if you’re already a heavy IJ user, I’d recommend it. That said, the template should be set up to work with emacs. I don’t use emacs myself, but the intention is for it to work.
@levitanong try 2.1.4-SNAPSHOT for the marker fix on errors