This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-04
Channels
- # aleph (4)
- # bangalore-clj (1)
- # beginners (89)
- # boot (16)
- # braveandtrue (4)
- # cider (1)
- # cljs-dev (6)
- # cljsrn (90)
- # clojure (132)
- # clojure-austin (1)
- # clojure-dusseldorf (4)
- # clojure-italy (12)
- # clojure-portugal (2)
- # clojure-spec (13)
- # clojure-uk (41)
- # clojurescript (142)
- # code-reviews (19)
- # conf-proposals (1)
- # datascript (6)
- # datomic (7)
- # graphql (12)
- # jobs-discuss (3)
- # keechma (23)
- # leiningen (3)
- # lumo (22)
- # off-topic (7)
- # om (21)
- # onyx (8)
- # parinfer (46)
- # pedestal (3)
- # perun (3)
- # re-frame (10)
- # reagent (30)
- # ring (1)
- # rum (2)
- # spacemacs (1)
- # sql (2)
- # testing (17)
- # yada (32)
@mihaelkonjevic Where would I run actions that should happen after a dataloader has loaded some data to the :target
path?
What do you need to do?
I didn't have a need for a such feature
So I'd like a real example to figure out what's the best approach
I'm loading the data into a table. Then I want to put the ids of the table items somewhere in the database. I suppose that's what entity-db does automatically, but what if you're not using entity-db?
The easiest would be to have a data-ids data source which depends on the data data source
That way whenever the original data changes data-ids would be called and you can process it to extract the ids
Datsource params fn received the data from all data sources it depends on. So you could just return the data from there and the loader fan could extract and store ids
@mihaelkonjevic Great, that works. By the way, I remember reading somewhere that you were going to give a talk on keechma. Has that happened yet? Is there a video?
it’s in september on ClojuTRE in Finland
@mihaelkonjevic Hm... I'm getting Missing dependencies :item for component :list
Can't figure out why. Will try to make minimal example
are you trying to get the “item” subscription without adding it into subscription-deps ?
is the “item” component registered in the ui-system map?
hm, yeah I’ll need the minimal example then 🙂
@mihaelkonjevic pfff.... it was just a damn typo!
@mihaelkonjevic So I'm playing around with the keechma source. The airity issue is specific to the toolbox library, correct? It doesn't seem to be an issue with a "vanilla" Controller