| 638 | queryClient.setQueryData(key, 'tag-from-this-client') |
| 639 | |
| 640 | @Component({ |
| 641 | template: `<div>data: {{ mutation.data() ?? 'none' }}</div>`, |
| 642 | }) |
| 643 | class Page { |
| 644 | readonly mutation = injectMutation(() => ({ |
| 645 | mutationFn: (_text: string, context) => |
| 646 | sleep(10).then(() => context.client.getQueryData(key)), |
| 647 | })) |
| 648 | } |
| 649 | |
| 650 | const rendered = await render(Page) |
| 651 |
nothing calls this directly
no test coverage detected