Skip to content

Initially paused query has isFetching status set to true #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
arkandias opened this issue Mar 23, 2025 · 0 comments
Open

Initially paused query has isFetching status set to true #220

arkandias opened this issue Mar 23, 2025 · 0 comments

Comments

@arkandias
Copy link

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).

@arkandias arkandias changed the title Initially paused query has isFetching status to true Initially paused query has isFetching status set to true Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant