You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@tanstack/react-query

Package Overview
Dependencies
Maintainers
2
Versions
446
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/react-query - npm Package Compare versions

Comparing version

to
4.40.1

build/lib/__tests__/Hydrate.test.d.ts.map

@@ -13,2 +13,9 @@ import type * as React from 'react';

export interface UseQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends UseBaseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> {
/**
* If set to `true`, the query will suspend when `status === 'loading'`
* and throw errors when `status === 'error'`.
* Defaults to `false`.
* @deprecated This option will be removed in the next major version.
*/
suspense?: boolean;
}

@@ -15,0 +22,0 @@ export declare type UseSuspenseQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'enabled' | 'useErrorBoundary' | 'suspense' | 'placeholderData' | 'networkMode' | 'onSuccess' | 'onError' | 'onSettled' | 'getPreviousPageParam' | 'getNextPageParam'>;

2

package.json
{
"name": "@tanstack/react-query",
"version": "4.40.0",
"version": "4.40.1",
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React",

@@ -5,0 +5,0 @@ "author": "tannerlinsley",

@@ -46,3 +46,11 @@ /* istanbul ignore file */

TQueryKey
> {}
> {
/**
* If set to `true`, the query will suspend when `status === 'loading'`
* and throw errors when `status === 'error'`.
* Defaults to `false`.
* @deprecated This option will be removed in the next major version.
*/
suspense?: boolean
}

@@ -49,0 +57,0 @@ export type UseSuspenseQueryOptions<