Skip to content

commit stops denorm when it finds a map without an id #28

@stevebuik

Description

@stevebuik
(dx/create-dx [{:event/id 1
                :name     "Olympics"
                :sports   {:page/id 1                       ; << remove to see bug
                           :total   10
                           :fetched [{:sport/id 2
                                      :name     "Boardercross"}
                                     {:sport/id 3
                                      :name     "Curling"}]}}]
              {::dx/with-diff? true})

while it's easy to workaround by adding fake ids to every map, it would be much less brittle for early
users if it could handle a deeply nested commit where some of the maps didn't need/have idents

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions