| 515 | queryClient.setQueryData(key, 'tag-from-this-client') |
| 516 | |
| 517 | @Component({ |
| 518 | template: `<div>data: {{ mutation.data() ?? 'none' }}</div>`, |
| 519 | }) |
| 520 | class Page { |
| 521 | readonly mutation = injectMutation(() => ({ |
| 522 | mutationFn: (_text: string, context) => |
| 523 | sleep(10).then(() => context.client.getQueryData(key)), |
| 524 | })) |
| 525 | } |
| 526 | |
| 527 | const rendered = await render(Page) |
| 528 |
nothing calls this directly
no test coverage detected