This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-29
Channels
- # admin-announcements (1)
- # aws (10)
- # beginners (76)
- # boot (53)
- # braid-chat (1)
- # cider (80)
- # cljs-edn (3)
- # clojure (65)
- # clojure-belgium (2)
- # clojure-gamedev (2)
- # clojure-nl (3)
- # clojure-poland (1)
- # clojure-russia (39)
- # clojure-uk (14)
- # clojurescript (91)
- # cursive (62)
- # datascript (1)
- # datomic (9)
- # dirac (34)
- # emacs (25)
- # error-message-catalog (8)
- # events (1)
- # hoplon (88)
- # instaparse (1)
- # jobs (2)
- # jobs-discuss (6)
- # lein-figwheel (7)
- # luminus (43)
- # mount (5)
- # off-topic (7)
- # om (28)
- # onyx (61)
- # planck (4)
- # re-frame (27)
- # reagent (3)
- # remote-jobs (2)
- # spacemacs (3)
- # untangled (136)
I dunno. the reconciler docstring for :send says "The callback should take ... the query that was sent as the second argument"
tomjack: thank you, I try these hints out, I also think that referring to components from parsers/remote handling logic would be weird, but it also stands for a try
@anmonteiro is having a talk about om next on craft conf right now https://craft-conf.com/2016
There seems to be some sort of leak going on in Safari with om.next
specifically. I haven’t figured out what exactly that causes it yet. Are there known problems with Safari?
@fifigyuri: when will we have the talk online ? I would love to watch it
it’s right now, showing demos, but it’s should come online, after the conference, the talks for last year are available, so this year should be too
that’s the demo https://github.com/anmonteiro/craftconf-demo
just missed anmonteiro's talk this morning 🙃
Hopefully they'll post it asap on youtube
hey all, i'm confused about how to introduce novelty from a remote.
my app state is a list of items {:items/list [{:id 1, ...}]}
and get normalized with [:item/by-id id]
.
i have a mutate function 'items/insert
which simply returns :remote true
.
so, this works fine if i call (om/transact! this '[(items/insert {:title "foo"}) :items/list])
– the server parses and responds with the entire :items/list
, and the frontend updates.
what i'm confused about is: how do i set this up so the server only returns the new item, and the frontend merges that single item into :items/list
?
in other words, in the remote, what should the :action
function in ’items/insert
return? and do i need to transform the response from (parser nil (req :body))
?
If I have nested OM components (Next), Can I have queries for Subcomponents for keys not included in the parent component?
Basically, I am looking to have a Root “Widget” that has multiple subcomponents like navigation-bar, notification-bar. etc… But I want those to pull down their own state from the root reconciler. Or do I have to query the state at the Root component level and pass it down.
Just a touch concerned if I have too many remote reads on sub-components, will they trigger re-render at the root level?
hmm, i think so, but i think om implements shouldComponentUpdate
so it should be performant still
I will play around with it. I tried using shouldComponentUpdate at the root level and setting it to false, however that also prevents the sub-components from updating their props.
What does this mean?
next.cljs:1229 Uncaught #error {:message "No queries exist for component path (torcaui.components.app/App torcaui.components.landing/AutoCompleter)", :data {:type :om.next/no-queries}}