Skip to content

@tanstack/vue-query does not update data after mutation unless isFetching is explicitly used #9133

@kostik-noir

Description

@kostik-noir

Describe the bug

Content is only updated in the component that explicitly uses isFetching in the template

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/4w2vcd

Steps to reproduce

Click "Add" button and compare the content of both UI components

Expected behavior

After clicking the Add button, the contents of both components should be the same.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Browser

Tanstack Query adapter

vue-query

TanStack Query version

v.5.73.0

TypeScript version

^5.73.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions