Skip to content

Do not PUT if Unit of work returns an empty diff #66

@jdeniau

Description

@jdeniau
Member

If you have this entity:

{
  "@id": "/foo/1",
  "title": "first foo"
}

and you send the same, the UnitOfWork will try to put this:

{}

Which is useless. If the unit of work returns an empty diff, we should not send the request

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jdeniau

        Issue actions

          Do not `PUT` if Unit of work returns an empty diff · Issue #66 · mapado/rest-client-sdk