Skip to content

Releases: HuolalaTech/react-query-kit

3.3.2

08 Aug 17:17

Choose a tag to compare

3.3.1

29 Oct 02:39

Choose a tag to compare

3.3.0

10 May 03:40

Choose a tag to compare

Disabling Queries

See changes: feat: support skipToken

To disable queries, now you can pass skipToken as the option variables to your custom query. This will prevent the query from being executed.

import { skipToken } from '@tanstack/react-query'

const [name, setName] = useState<string | undefined>()
const result = usePost({
  variables: id ? { id: id } : skipToken,
})

// and for useQueries example
const queries = useQueries({
  queries: [usePost.getOptions(id ? { id: id } : skipToken)],
})

3.2.2

03 Apr 09:50

Choose a tag to compare

3.2.1

21 Mar 07:57

Choose a tag to compare

3.2.0

12 Mar 02:16

Choose a tag to compare

3.1.3

05 Mar 09:57

Choose a tag to compare

3.1.2

18 Feb 07:55

Choose a tag to compare

3.1.1

01 Feb 07:11

Choose a tag to compare

3.1.0

19 Dec 03:25

Choose a tag to compare