Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xaota opened this issue Apr 4, 2024 · 0 comments
Labels
scope:core type:bug Something isn't working type:enhancement New feature or request
Milestone

Comments

@xaota
Copy link

xaota commented Apr 4, 2024

как сейчас

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

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

update(query, { on: mutation });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:core type:bug Something isn't working type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants