From f599246078bf7ad4bcf3a7528245ce92d1a6472c Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Fri, 6 Sep 2024 20:37:03 +0900 Subject: [PATCH] feat(react-query): remove experimental jsdoc of infiniteQueryOptions,`` (#1261) close #1237 # Overview ## 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 <39869096+gwansikk@users.noreply.github.com> --- .changeset/selfish-frogs-wonder.md | 7 +++++++ packages/react-query-4/src/Mutation.tsx | 3 --- packages/react-query-4/src/infiniteQueryOptions.ts | 11 ----------- packages/react-query-5/src/Mutation.tsx | 3 --- 4 files changed, 7 insertions(+), 17 deletions(-) create mode 100644 .changeset/selfish-frogs-wonder.md diff --git a/.changeset/selfish-frogs-wonder.md b/.changeset/selfish-frogs-wonder.md new file mode 100644 index 000000000..b84fa84fc --- /dev/null +++ b/.changeset/selfish-frogs-wonder.md @@ -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,`` diff --git a/packages/react-query-4/src/Mutation.tsx b/packages/react-query-4/src/Mutation.tsx index b9dea3c90..ae18ea4de 100644 --- a/packages/react-query-4/src/Mutation.tsx +++ b/packages/react-query-4/src/Mutation.tsx @@ -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({ children, ...options diff --git a/packages/react-query-4/src/infiniteQueryOptions.ts b/packages/react-query-4/src/infiniteQueryOptions.ts index 1f2baff4f..1cb6141d1 100644 --- a/packages/react-query-4/src/infiniteQueryOptions.ts +++ b/packages/react-query-4/src/infiniteQueryOptions.ts @@ -51,9 +51,6 @@ export type UnSelectedInfiniteOptions< select?: undefined } -/** - * @experimental This is experimental feature. - */ export function infiniteQueryOptions< TQueryFnData, TError = unknown, @@ -62,10 +59,6 @@ export function infiniteQueryOptions< >( options: SelectedInfiniteOptions ): SelectedInfiniteOptions - -/** - * @experimental This is experimental feature. - */ export function infiniteQueryOptions< TQueryFnData, TError = unknown, @@ -74,10 +67,6 @@ export function infiniteQueryOptions< >( options: UnSelectedInfiniteOptions ): UnSelectedInfiniteOptions - -/** - * @experimental This is experimental feature. - */ export function infiniteQueryOptions(options: unknown) { return options } diff --git a/packages/react-query-5/src/Mutation.tsx b/packages/react-query-5/src/Mutation.tsx index d997cbb3d..7e0635a89 100644 --- a/packages/react-query-5/src/Mutation.tsx +++ b/packages/react-query-5/src/Mutation.tsx @@ -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({ children, ...options