Skip to content

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

Description

@n-satoshi061

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.tsimport{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.

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