This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-30
Channels
- # beginners (126)
- # boot (2)
- # cider (6)
- # cljs-dev (46)
- # cljsjs (8)
- # clojure (122)
- # clojure-greece (57)
- # clojure-italy (6)
- # clojure-poland (3)
- # clojure-russia (2)
- # clojure-serbia (5)
- # clojure-spec (26)
- # clojure-uk (99)
- # clojurescript (39)
- # cursive (15)
- # datascript (7)
- # datomic (21)
- # dirac (7)
- # duct (1)
- # emacs (19)
- # fulcro (58)
- # garden (4)
- # graphql (15)
- # hoplon (2)
- # immutant (1)
- # instaparse (3)
- # jobs (5)
- # juxt (15)
- # klipse (4)
- # leiningen (2)
- # lumo (52)
- # off-topic (8)
- # om (27)
- # onyx (22)
- # other-languages (3)
- # portkey (2)
- # protorepl (2)
- # re-frame (7)
- # reagent (7)
- # ring (11)
- # rum (7)
- # shadow-cljs (114)
- # spacemacs (20)
- # specter (16)
- # test-check (5)
- # timbre (1)
- # unrepl (43)
- # yada (17)
Hello, is there anyway to explicitly set :db/txInstant
data in datascript? It seems datascript doesn't allow me to override :db/current-tx
I need to override it so I can display the correct :db/txInstant
based on datomic
@boldaslove156 datascript does not set :db/txInstant at all
it does not let you change transaction id, but you can set attrs on that transactions to any values you want
(d/transact! conn
[[:db/add e :attr v]
[:db/add :db/current-tx :db/txInstant (js/Date.)]
[:db/add :db/current-tx :original-datomic-tx-id 111111]])
so with datascript I can just send delta TX over the wire when I need to. do you have any recommendations on how to Subscribe subsets of user ids to specific events?
For example, if someone is in a specific room, I want to watch just changes on that room, presumably serverside before I send anything over the wire, to save precious bandwidth