Skip to content

Commit

Permalink
feat(react-query): remove experimental jsdoc of infiniteQueryOptions,…
Browse files Browse the repository at this point in the history
…`<Mutation/>` (#1261)

close #1237 

# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.

---------

Co-authored-by: gwansikk <[email protected]>
  • Loading branch information
manudeli and gwansikk authored Sep 6, 2024
1 parent 2e738d7 commit f599246
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
7 changes: 7 additions & 0 deletions .changeset/selfish-frogs-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@suspensive/react-query-4": patch
"@suspensive/react-query-5": patch
"@suspensive/react-query": patch
---

feat(react-query): remove experimental jsdoc of infiniteQueryOptions,`<Mutation/>`
3 changes: 0 additions & 3 deletions packages/react-query-4/src/Mutation.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { type UseMutationOptions, type UseMutationResult, useMutation } from '@tanstack/react-query'
import type { ReactNode } from 'react'

/**
* @experimental This is experimental feature.
*/
export function Mutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>({
children,
...options
Expand Down
11 changes: 0 additions & 11 deletions packages/react-query-4/src/infiniteQueryOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ export type UnSelectedInfiniteOptions<
select?: undefined
}

/**
* @experimental This is experimental feature.
*/
export function infiniteQueryOptions<
TQueryFnData,
TError = unknown,
Expand All @@ -62,10 +59,6 @@ export function infiniteQueryOptions<
>(
options: SelectedInfiniteOptions<TQueryFnData, TError, TData, TQueryKey>
): SelectedInfiniteOptions<TQueryFnData, TError, TData, TQueryKey>

/**
* @experimental This is experimental feature.
*/
export function infiniteQueryOptions<
TQueryFnData,
TError = unknown,
Expand All @@ -74,10 +67,6 @@ export function infiniteQueryOptions<
>(
options: UnSelectedInfiniteOptions<TQueryFnData, TError, TData, TQueryKey>
): UnSelectedInfiniteOptions<TQueryFnData, TError, TData, TQueryKey>

/**
* @experimental This is experimental feature.
*/
export function infiniteQueryOptions(options: unknown) {
return options
}
3 changes: 0 additions & 3 deletions packages/react-query-5/src/Mutation.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { type DefaultError, type UseMutationOptions, type UseMutationResult, useMutation } from '@tanstack/react-query'
import type { ReactNode } from 'react'

/**
* @experimental This is experimental feature.
*/
export function Mutation<TData = unknown, TError = DefaultError, TVariables = void, TContext = unknown>({
children,
...options
Expand Down

0 comments on commit f599246

Please sign in to comment.