@tanstack/solid-query 6.0.0-rc.0 → 6.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/build/_tsup-dts-rollup.d.cts +203 -152
- package/build/_tsup-dts-rollup.d.ts +203 -152
- package/build/dev.cjs +755 -559
- package/build/dev.d.cts +2 -22
- package/build/dev.d.ts +2 -22
- package/build/dev.js +757 -559
- package/build/index.cjs +755 -550
- package/build/index.d.cts +2 -22
- package/build/index.d.ts +2 -22
- package/build/index.js +757 -550
- package/package.json +7 -6
- package/src/QueryClient.ts +24 -45
- package/src/QueryClientProvider.tsx +136 -58
- package/src/cacheAggregate.ts +90 -0
- package/src/dehydrateSettled.ts +42 -0
- package/src/index.ts +3 -29
- package/src/types.ts +62 -44
- package/src/useBaseQuery.ts +674 -412
- package/src/useInfiniteQuery.ts +156 -4
- package/src/useIsFetching.ts +6 -16
- package/src/useIsMutating.ts +6 -16
- package/src/useMutation.ts +317 -56
- package/src/useMutationState.ts +9 -22
- package/src/useQueries.ts +61 -110
- package/src/hydrationChannel.ts +0 -260
package/build/index.d.cts
CHANGED
|
@@ -9,56 +9,36 @@ export { UseBaseQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
|
9
9
|
export { UseBaseQueryResult } from './_tsup-dts-rollup.cjs';
|
|
10
10
|
export { UseInfiniteQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
11
11
|
export { UseInfiniteQueryResult } from './_tsup-dts-rollup.cjs';
|
|
12
|
-
export { UseMutateAsyncFunction } from './_tsup-dts-rollup.cjs';
|
|
13
12
|
export { UseMutateFunction } from './_tsup-dts-rollup.cjs';
|
|
14
13
|
export { UseMutationOptions } from './_tsup-dts-rollup.cjs';
|
|
15
14
|
export { UseMutationResult } from './_tsup-dts-rollup.cjs';
|
|
16
15
|
export { UseQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
17
16
|
export { UseQueryResult } from './_tsup-dts-rollup.cjs';
|
|
18
|
-
export { CreateBaseQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
19
|
-
export { CreateBaseQueryResult } from './_tsup-dts-rollup.cjs';
|
|
20
|
-
export { CreateInfiniteQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
21
|
-
export { CreateInfiniteQueryResult } from './_tsup-dts-rollup.cjs';
|
|
22
|
-
export { CreateMutateAsyncFunction } from './_tsup-dts-rollup.cjs';
|
|
23
|
-
export { CreateMutateFunction } from './_tsup-dts-rollup.cjs';
|
|
24
|
-
export { CreateMutationOptions } from './_tsup-dts-rollup.cjs';
|
|
25
|
-
export { CreateMutationResult } from './_tsup-dts-rollup.cjs';
|
|
26
|
-
export { CreateBaseMutationResult } from './_tsup-dts-rollup.cjs';
|
|
27
|
-
export { CreateQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
28
|
-
export { CreateQueryResult } from './_tsup-dts-rollup.cjs';
|
|
29
|
-
export { DefinedCreateBaseQueryResult } from './_tsup-dts-rollup.cjs';
|
|
30
|
-
export { DefinedCreateInfiniteQueryResult } from './_tsup-dts-rollup.cjs';
|
|
31
|
-
export { DefinedCreateQueryResult } from './_tsup-dts-rollup.cjs';
|
|
32
17
|
export { QueryClient_alias_1 as QueryClient } from './_tsup-dts-rollup.cjs';
|
|
33
18
|
export { QueryObserverOptions_alias_1 as QueryObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
34
19
|
export { DefaultOptions_alias_1 as DefaultOptions } from './_tsup-dts-rollup.cjs';
|
|
35
20
|
export { QueryClientConfig_alias_1 as QueryClientConfig } from './_tsup-dts-rollup.cjs';
|
|
36
21
|
export { InfiniteQueryObserverOptions_alias_1 as InfiniteQueryObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
37
22
|
export { useQuery } from './_tsup-dts-rollup.cjs';
|
|
38
|
-
export { createQuery } from './_tsup-dts-rollup.cjs';
|
|
39
23
|
export { queryOptions } from './_tsup-dts-rollup.cjs';
|
|
40
24
|
export { DefinedInitialDataOptions } from './_tsup-dts-rollup.cjs';
|
|
41
25
|
export { UndefinedInitialDataOptions } from './_tsup-dts-rollup.cjs';
|
|
26
|
+
export { FLIGHT_DATA_SOURCE_alias_1 as FLIGHT_DATA_SOURCE } from './_tsup-dts-rollup.cjs';
|
|
42
27
|
export { QueryClientContext_alias_1 as QueryClientContext } from './_tsup-dts-rollup.cjs';
|
|
43
28
|
export { QueryClientProvider_alias_1 as QueryClientProvider } from './_tsup-dts-rollup.cjs';
|
|
44
29
|
export { useQueryClient_alias_1 as useQueryClient } from './_tsup-dts-rollup.cjs';
|
|
45
30
|
export { QueryClientProviderProps_alias_1 as QueryClientProviderProps } from './_tsup-dts-rollup.cjs';
|
|
31
|
+
export { dehydrateSettled_alias_1 as dehydrateSettled } from './_tsup-dts-rollup.cjs';
|
|
46
32
|
export { useIsFetching } from './_tsup-dts-rollup.cjs';
|
|
47
|
-
export { createIsFetching } from './_tsup-dts-rollup.cjs';
|
|
48
33
|
export { useInfiniteQuery } from './_tsup-dts-rollup.cjs';
|
|
49
|
-
export { createInfiniteQuery } from './_tsup-dts-rollup.cjs';
|
|
50
34
|
export { infiniteQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
51
35
|
export { DefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.cjs';
|
|
52
36
|
export { UndefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.cjs';
|
|
53
37
|
export { useMutation } from './_tsup-dts-rollup.cjs';
|
|
54
38
|
export { mutationOptions } from './_tsup-dts-rollup.cjs';
|
|
55
|
-
export { createMutation } from './_tsup-dts-rollup.cjs';
|
|
56
39
|
export { useIsMutating } from './_tsup-dts-rollup.cjs';
|
|
57
|
-
export { createIsMutating } from './_tsup-dts-rollup.cjs';
|
|
58
40
|
export { useMutationState } from './_tsup-dts-rollup.cjs';
|
|
59
|
-
export { createMutationState } from './_tsup-dts-rollup.cjs';
|
|
60
41
|
export { useQueries } from './_tsup-dts-rollup.cjs';
|
|
61
|
-
export { createQueries } from './_tsup-dts-rollup.cjs';
|
|
62
42
|
export { useIsRestoring } from './_tsup-dts-rollup.cjs';
|
|
63
43
|
export { IsRestoringContext } from './_tsup-dts-rollup.cjs';
|
|
64
44
|
export { focusManager } from './_tsup-dts-rollup.cjs';
|
package/build/index.d.ts
CHANGED
|
@@ -9,56 +9,36 @@ export { UseBaseQueryOptions } from './_tsup-dts-rollup.js';
|
|
|
9
9
|
export { UseBaseQueryResult } from './_tsup-dts-rollup.js';
|
|
10
10
|
export { UseInfiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
11
11
|
export { UseInfiniteQueryResult } from './_tsup-dts-rollup.js';
|
|
12
|
-
export { UseMutateAsyncFunction } from './_tsup-dts-rollup.js';
|
|
13
12
|
export { UseMutateFunction } from './_tsup-dts-rollup.js';
|
|
14
13
|
export { UseMutationOptions } from './_tsup-dts-rollup.js';
|
|
15
14
|
export { UseMutationResult } from './_tsup-dts-rollup.js';
|
|
16
15
|
export { UseQueryOptions } from './_tsup-dts-rollup.js';
|
|
17
16
|
export { UseQueryResult } from './_tsup-dts-rollup.js';
|
|
18
|
-
export { CreateBaseQueryOptions } from './_tsup-dts-rollup.js';
|
|
19
|
-
export { CreateBaseQueryResult } from './_tsup-dts-rollup.js';
|
|
20
|
-
export { CreateInfiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
21
|
-
export { CreateInfiniteQueryResult } from './_tsup-dts-rollup.js';
|
|
22
|
-
export { CreateMutateAsyncFunction } from './_tsup-dts-rollup.js';
|
|
23
|
-
export { CreateMutateFunction } from './_tsup-dts-rollup.js';
|
|
24
|
-
export { CreateMutationOptions } from './_tsup-dts-rollup.js';
|
|
25
|
-
export { CreateMutationResult } from './_tsup-dts-rollup.js';
|
|
26
|
-
export { CreateBaseMutationResult } from './_tsup-dts-rollup.js';
|
|
27
|
-
export { CreateQueryOptions } from './_tsup-dts-rollup.js';
|
|
28
|
-
export { CreateQueryResult } from './_tsup-dts-rollup.js';
|
|
29
|
-
export { DefinedCreateBaseQueryResult } from './_tsup-dts-rollup.js';
|
|
30
|
-
export { DefinedCreateInfiniteQueryResult } from './_tsup-dts-rollup.js';
|
|
31
|
-
export { DefinedCreateQueryResult } from './_tsup-dts-rollup.js';
|
|
32
17
|
export { QueryClient_alias_1 as QueryClient } from './_tsup-dts-rollup.js';
|
|
33
18
|
export { QueryObserverOptions_alias_1 as QueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
34
19
|
export { DefaultOptions_alias_1 as DefaultOptions } from './_tsup-dts-rollup.js';
|
|
35
20
|
export { QueryClientConfig_alias_1 as QueryClientConfig } from './_tsup-dts-rollup.js';
|
|
36
21
|
export { InfiniteQueryObserverOptions_alias_1 as InfiniteQueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
37
22
|
export { useQuery } from './_tsup-dts-rollup.js';
|
|
38
|
-
export { createQuery } from './_tsup-dts-rollup.js';
|
|
39
23
|
export { queryOptions } from './_tsup-dts-rollup.js';
|
|
40
24
|
export { DefinedInitialDataOptions } from './_tsup-dts-rollup.js';
|
|
41
25
|
export { UndefinedInitialDataOptions } from './_tsup-dts-rollup.js';
|
|
26
|
+
export { FLIGHT_DATA_SOURCE_alias_1 as FLIGHT_DATA_SOURCE } from './_tsup-dts-rollup.js';
|
|
42
27
|
export { QueryClientContext_alias_1 as QueryClientContext } from './_tsup-dts-rollup.js';
|
|
43
28
|
export { QueryClientProvider_alias_1 as QueryClientProvider } from './_tsup-dts-rollup.js';
|
|
44
29
|
export { useQueryClient_alias_1 as useQueryClient } from './_tsup-dts-rollup.js';
|
|
45
30
|
export { QueryClientProviderProps_alias_1 as QueryClientProviderProps } from './_tsup-dts-rollup.js';
|
|
31
|
+
export { dehydrateSettled_alias_1 as dehydrateSettled } from './_tsup-dts-rollup.js';
|
|
46
32
|
export { useIsFetching } from './_tsup-dts-rollup.js';
|
|
47
|
-
export { createIsFetching } from './_tsup-dts-rollup.js';
|
|
48
33
|
export { useInfiniteQuery } from './_tsup-dts-rollup.js';
|
|
49
|
-
export { createInfiniteQuery } from './_tsup-dts-rollup.js';
|
|
50
34
|
export { infiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
51
35
|
export { DefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.js';
|
|
52
36
|
export { UndefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.js';
|
|
53
37
|
export { useMutation } from './_tsup-dts-rollup.js';
|
|
54
38
|
export { mutationOptions } from './_tsup-dts-rollup.js';
|
|
55
|
-
export { createMutation } from './_tsup-dts-rollup.js';
|
|
56
39
|
export { useIsMutating } from './_tsup-dts-rollup.js';
|
|
57
|
-
export { createIsMutating } from './_tsup-dts-rollup.js';
|
|
58
40
|
export { useMutationState } from './_tsup-dts-rollup.js';
|
|
59
|
-
export { createMutationState } from './_tsup-dts-rollup.js';
|
|
60
41
|
export { useQueries } from './_tsup-dts-rollup.js';
|
|
61
|
-
export { createQueries } from './_tsup-dts-rollup.js';
|
|
62
42
|
export { useIsRestoring } from './_tsup-dts-rollup.js';
|
|
63
43
|
export { IsRestoringContext } from './_tsup-dts-rollup.js';
|
|
64
44
|
export { focusManager } from './_tsup-dts-rollup.js';
|