Skip to content
Source
Sign inSign up
TanStack/query

queryOptions is not in @tanstack/react-query #7374

Send to my agent
Closedabarbosa-godaddy(GitHub profile, opens in a new tab) opened this issue 1 comment

Describe the bug

The doc mentions the following function.

https://tanstack.com/query/latest/docs/framework/react/guides/query-options

I can't import it though.

I get the following message '"@tanstack/react-query"' has no exported member named 'queryOptions'. Did you mean 'QueryOptions'?

Your minimal, reproducible example

N/A

Steps to reproduce

on version 4.29.25, try to import queryOptions function

Expected behavior

It should export the function.

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

MacOS M3

Tanstack Query adapter

react-query

TanStack Query version

4.29.25

TypeScript version

No response

Additional context

No response

  1. This is a v5 feature.

  2. TkDodo closed this

  3. TkDodo added labelsinvalid

Sign in to join this conversation.