Skip to content

Шортхэнд для update Query после мутаций, если нужен только refetch #465

@xaota

Description

@xaota

как сейчас

update(query, {
  on: mutation,
  by: {
    success: () => ({
      error: null, // это почему-то обязательное поле о_О
      refetch: true
    })
  }
});

как хочется (слишком частый кейс)

update(query, { on: mutation });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions