Skip to content

:create sends the entire containing data structure #3

@frankiesardo

Description

@frankiesardo

I don't know if this is behaviour is intended, but it looks a bit odd to me.
Every time I create a new item om-sync sends the entire list of items to the backend.
This is because the edn message to be sent is extracted from (:new-value tx-data).
Wouldn't it be more sensible to just send the new item every time? I see that we can pick it up from the second argument of the transaction tag, but I'm not 100% sure how this should work if a tag-fn is supplied.

On a side note, I discovered this issue because sending a vector instead of a map is an instant 500 from the ring-middleware and I can't understand why 🔍

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