This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-01
Channels
- # aleph (3)
- # announcements (10)
- # babashka (6)
- # bangalore-clj (4)
- # beginners (91)
- # biff (7)
- # cider (25)
- # cljs-dev (1)
- # clojure (109)
- # clojure-europe (9)
- # clojure-norway (5)
- # clojure-uk (1)
- # clojurescript (22)
- # cursive (22)
- # data-science (1)
- # datalevin (5)
- # datomic (7)
- # emacs (7)
- # etaoin (1)
- # events (3)
- # graphql (12)
- # hyperfiddle (1)
- # inf-clojure (1)
- # lsp (69)
- # luminus (1)
- # meander (21)
- # nbb (4)
- # off-topic (27)
- # other-languages (12)
- # rdf (58)
- # releases (3)
- # remote-jobs (2)
- # rum (12)
- # shadow-cljs (4)
- # sql (3)
- # xtdb (1)
Hi all, I'm attempting to load about 30 rows of table data as individual re-graph queries and I am seeing that my queries don't complete and I can see in reframe-10x that a regraph.internals/register-abort event is being handled - are my queries being aborted? what can I do about this?
No, that is just an implementation detail for supporting the abort feature, it doesn't mean it's been run
I'm using http, and it looks like only one of my requests is actually being made, thanks for the tip to check the requests.
This is what I have in the effect handler that's supposed to be dispatching one query per date:
(re-frame/reg-event-fx
:table/set-counts-for-dates
[(re-frame/inject-cofx ::inject/sub [:table/dates])]
(fn [{db :db dates :table/dates} event]
(let [fx-list (mapv (fn [date]
[:dispatch [::re-graph/query
:query-counts-for-date
"($date: ID!){countsForDate (date: $date) {aircraftPatternCount flightCount}}"
{:date date}
[:table/set-counts-for-single-date]]]) dates)]
{:fx fx-list})))
But it's only dispatching the first ::re-graph/query event
Ah, you are setting the query id as :query-counts-for-date
on each one. Re-graph is deduping them for you
ohhhh
thank you!!!
That did it! Thanks! I love your library