Skip to content
Source
Sign inSign up
TanStack/query

fix(vue-query): replace deprecated isServer with environmentManager.isServer() #10821

Send to my agent
Closedn-satoshi061(GitHub profile, opens in a new tab) opened this issue 4 comments

Description

packages/vue-query/src/vueQueryPlugin.ts still uses the deprecated isServer export from @tanstack/query-core, which was marked as deprecated in #10199 when environmentManager was introduced.

Affected version

Confirmed in @tanstack/vue-query@5.100.14 (latest as of 2026-05-28) and the current main branch.

Affected file

// packages/vue-query/src/vueQueryPlugin.ts
import { isServer } from '@tanstack/query-core' // ← deprecated

// ...

if (!isServer) {
  client.mount()
}

Expected fix

import { environmentManager } from '@tanstack/query-core'

// ...

if (!environmentManager.isServer()) {
  client.mount()
}

Context

PR #10199 migrated react-query and preact-query to use environmentManager.isServer() and deprecated the direct isServer export, but vue-query appears to have been missed in that migration.

PackageStatus
react-query✅ migrated to environmentManager.isServer()
preact-query✅ migrated to environmentManager.isServer()
vue-query❌ still using deprecated isServer

Happy to submit a PR if this direction is acceptable.

  1. I’d appreciate a PR for this 🙏

  2. TkDodo added labelspackage: vue-query

  3. TkDodo removed labelspackage: vue-query

  4. TkDodo added labelsgood first issue

  5. TkDodo added labelspackage: vue-query

  6. Hi @TkDodo, I'd like to take this on. I'll mirror the approach used in #10199 for the react-query and preact-query packages. Will open a PR shortly.

  7. Thanks for picking this up so quickly, @spandzgit! 🙏

  8. TkDodo closed this

Sign in to join this conversation.