| 34 | const key = createKey() |
| 35 | |
| 36 | @Component({ |
| 37 | template: `<div>mutating: {{ isMutating() }}</div>`, |
| 38 | }) |
| 39 | class Page { |
| 40 | readonly mutation = injectMutation(() => ({ |
| 41 | mutationKey: key, |
| 42 | mutationFn: (params: { par1: string }) => sleep(10).then(() => params), |
| 43 | })) |
| 44 | readonly isMutating = injectIsMutating() |
| 45 | } |
| 46 | |
| 47 | const rendered = await render(Page) |
| 48 |
nothing calls this directly
no test coverage detected