Skip to content

Initially paused query has isFetching status set to true #220

@arkandias

Description

@arkandias

Is the following behavior intended? When starting a query with paused set to true, the status isFetching is true (even though no request is being sent since the query is paused).

const { data, isFetching } = useQuery({
  query: GetTodos,
  paused: true,
});

console.log(isFetching.value); // true

Here is a stackblitz: https://stackblitz.com/edit/vitejs-vite-92sq3apz?file=src%2Fcomponents%2FHelloWorld.vue

As a side note, it would be useful if useQuery returned the pause status of the query (e.g., isPaused).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions