With empty component, one can create a reference to non-existing entity
还没有人认领这个 Issue。
评估
调研方向
首先通过 d/empty-db 和 d/with 复现该示例,并检查 :db.type/ref 和 :db/isComponent schema 在该事务中是如何处理的。完成的标准是,空组件不再为不存在的实体生成 reference datom,并为该示例添加回归覆盖。
由索引模型根据 Issue 内容生成。
描述
(-> (d/empty-db {:comp {:db/valueType :db.type/ref,
:db/isComponent true}})
(d/with [{:comp {}}])
:tx-data)
; => [#datascript/Datom [1 :comp 2 536870913 true]]
- 主要语言
- Clojure
- 星标
- 5.8k
- 派生
- 318
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tonsky/datascript 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 42/100
tonsky/datascript#498 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 10/100
tonsky/datascript#489 ·
-
Stack overflow when transacting :db.type/tupleAttrs with a :db.type/ref attr through :db.fn/call 未关闭
难度 4/5 3-5 天 新手友好度 35/100
tonsky/datascript#483 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
tonsky/datascript#470 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
tonsky/datascript#441 · 1 条评论 · 3 个 reaction ·
查看 tonsky/datascript 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 1/5 1 小时以内 新手友好度 88/100
-
.Team/Metabot Priority:P3
难度 2/5 1-3 小时 新手友好度 72/100
-
needs triage
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 78/100
scalar-labs/scalar-jepsen#222 · 1 条评论 ·