Skip to content

A mutationKey with input signals causes ngZone errors #9940

@AndreasNienhaus

Description

@AndreasNienhaus

Describe the bug

Hello together,

using input signals in a mutationKey causes this errors.

Your minimal, reproducible example

https://stackblitz.com/edit/stackblitz-starters-dum4vuxa?file=package.json,src%2Fmain.ts,src%2Findex.html

Steps to reproduce

  1. Open console
  2. See bugs

Expected behavior

Using input signals in mutationKey or any other property within injectXXX should cause not ngZone bug.

How often does this bug happen?

Every time

Screenshots or Videos

Image

Platform

"@angular/core": "^19.2.10",
Chrome: 42.0.7444.176

Tanstack Query adapter

angular-query

TanStack Query version

v5.90.15

TypeScript version

v5.8.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions