@kubb/plugin-react-query
v3.3.4
Published
Generator react-query hooks
Downloads
9,331
Maintainers
Readme
Supporting Kubb
Kubb uses an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:
options query
v4
UseBaseQueryOptions => react-query only UseQueryOptions => vue-query only CreateQueryOptions => solid-query only CreateQueryOptions => svelte-query only
v5
UseBaseQueryOptions => react-query only https://github.com/TanStack/query/blob/ce1305c27e7ac7988656d171d882a665a286cc6a/packages/react-query/src/types.ts#L18 QueryObserverOptions => vue-query only https://github.com/TanStack/query/blob/main/packages/vue-query/src/useQuery.ts#L24 UseQueryOptions => solid-query only
result query
v4
UseQueryResult => react-query only UseQueryReturnType => vue-query only CreateQueryResult => solid-query only CreateQueryResult => svelte-query only
v5
UseQueryResult => react-query only UseQueryReturnType => vue-query only
queryOptions() query
v5
queryOptions => react-query only
{
query: {
types: {
options: 'UseBaseQueryOptions'
result: 'UseQueryResult'
}
}
}
options mutation
v4
UseMutationOptions => react-query only VueMutationObserverOptions => vue-query only
v5
UseMutationOptions => react-query only MutationObserverOptions => vue-query only
result mutation
v4
UseMutationResult => react-query only UseMutationReturnType => vue-query only
v5
UseMutationResult => react-query only UseMutationReturnType => vue-query only