Skip to content

When I use skipToken in vue-query, the type has error #9527

@ZCY-G

Description

@ZCY-G

Describe the bug

Image

The id's type is string or undefined, I expected the type is string because use !!id.value ? <the function> : skipToken

Your minimal, reproducible example

don't need

Steps to reproduce

don't need

Expected behavior

don't need

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

don't need

Tanstack Query adapter

vue-query

TanStack Query version

5.83.1

TypeScript version

5.8.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions