This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-24
Channels
- # arachne (1)
- # bangalore-clj (11)
- # beginners (177)
- # boot (63)
- # business (1)
- # cljsjs (21)
- # cljsrn (3)
- # clojars (4)
- # clojure (116)
- # clojure-art (4)
- # clojure-belgium (3)
- # clojure-india (1)
- # clojure-italy (6)
- # clojure-russia (14)
- # clojure-spec (8)
- # clojure-uk (67)
- # clojurescript (51)
- # community-development (5)
- # cursive (13)
- # datascript (14)
- # datomic (29)
- # devcards (3)
- # emacs (3)
- # events (3)
- # funcool (4)
- # hoplon (29)
- # mount (6)
- # om (34)
- # om-next (5)
- # onyx (16)
- # perun (8)
- # planck (22)
- # re-frame (13)
- # reagent (5)
- # ring-swagger (21)
- # rum (3)
- # spacemacs (3)
- # specter (1)
- # untangled (39)
why does replacing embedded document (aka 'component' field of datascript) leaves orphaned internal entities?
(let [db (d/create-conn {:heroku.app.id {:db/unique :db.unique/identity}
:w {:db/isComponent true
:db/valueType :db.type/ref}})]
(d/transact! db
[{:heroku.app.id 7 :w {:a 2 :b 3}}])
(d/transact! db
[{:heroku.app.id 7 :w {:c 4 :d 5}}]))
(I have a guess that in datomic it would be more of a feature, though, to preserve history)