@suspensive/react-query-4 3.19.5 → 4.0.0-next.0

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.
Files changed (290) hide show
  1. package/dist/ClientOnly-BSe1ROuK.cjs +20 -0
  2. package/dist/ClientOnly-BSe1ROuK.cjs.map +1 -0
  3. package/dist/ClientOnly-D2JpP9Ba.mjs +15 -0
  4. package/dist/ClientOnly-D2JpP9Ba.mjs.map +1 -0
  5. package/dist/IsFetching-BGIRMA6C.cjs +17 -0
  6. package/dist/IsFetching-BGIRMA6C.cjs.map +1 -0
  7. package/dist/IsFetching-CJrzs0ET.d.mts +16 -0
  8. package/dist/IsFetching-CJrzs0ET.d.mts.map +1 -0
  9. package/dist/IsFetching-Di9jXfRH.mjs +12 -0
  10. package/dist/IsFetching-Di9jXfRH.mjs.map +1 -0
  11. package/dist/IsFetching-FFvHWt5I.d.cts +16 -0
  12. package/dist/IsFetching-FFvHWt5I.d.cts.map +1 -0
  13. package/dist/IsFetching.cjs +2 -18
  14. package/dist/IsFetching.d.cts +2 -18
  15. package/dist/IsFetching.d.mts +2 -18
  16. package/dist/IsFetching.mjs +2 -17
  17. package/dist/Mutation-BWER242k.cjs +19 -0
  18. package/dist/Mutation-BWER242k.cjs.map +1 -0
  19. package/dist/Mutation-SB8NYSR4.mjs +14 -0
  20. package/dist/Mutation-SB8NYSR4.mjs.map +1 -0
  21. package/dist/Mutation-rhItOp02.d.cts +14 -0
  22. package/dist/Mutation-rhItOp02.d.cts.map +1 -0
  23. package/dist/Mutation-sfj_v5Fj.d.mts +14 -0
  24. package/dist/Mutation-sfj_v5Fj.d.mts.map +1 -0
  25. package/dist/Mutation.cjs +2 -14
  26. package/dist/Mutation.d.cts +2 -14
  27. package/dist/Mutation.d.mts +2 -14
  28. package/dist/Mutation.mjs +2 -13
  29. package/dist/PrefetchInfiniteQuery-BH6xERH5.mjs +20 -0
  30. package/dist/PrefetchInfiniteQuery-BH6xERH5.mjs.map +1 -0
  31. package/dist/PrefetchInfiniteQuery-Bf5JUe7U.cjs +25 -0
  32. package/dist/PrefetchInfiniteQuery-Bf5JUe7U.cjs.map +1 -0
  33. package/dist/PrefetchInfiniteQuery-CBl7Fblo.d.cts +17 -0
  34. package/dist/PrefetchInfiniteQuery-CBl7Fblo.d.cts.map +1 -0
  35. package/dist/PrefetchInfiniteQuery-CNNJphhx.d.mts +17 -0
  36. package/dist/PrefetchInfiniteQuery-CNNJphhx.d.mts.map +1 -0
  37. package/dist/PrefetchInfiniteQuery.cjs +2 -20
  38. package/dist/PrefetchInfiniteQuery.d.cts +2 -16
  39. package/dist/PrefetchInfiniteQuery.d.mts +2 -16
  40. package/dist/PrefetchInfiniteQuery.mjs +2 -19
  41. package/dist/PrefetchQuery-BmQt_WJk.d.mts +17 -0
  42. package/dist/PrefetchQuery-BmQt_WJk.d.mts.map +1 -0
  43. package/dist/PrefetchQuery-CqWzm0Tu.d.cts +17 -0
  44. package/dist/PrefetchQuery-CqWzm0Tu.d.cts.map +1 -0
  45. package/dist/PrefetchQuery-DQFTAE7M.mjs +20 -0
  46. package/dist/PrefetchQuery-DQFTAE7M.mjs.map +1 -0
  47. package/dist/PrefetchQuery-PBReP6tu.cjs +25 -0
  48. package/dist/PrefetchQuery-PBReP6tu.cjs.map +1 -0
  49. package/dist/PrefetchQuery.cjs +2 -20
  50. package/dist/PrefetchQuery.d.cts +2 -16
  51. package/dist/PrefetchQuery.d.mts +2 -16
  52. package/dist/PrefetchQuery.mjs +2 -19
  53. package/dist/QueriesHydration-B28Xmf0f.d.cts +106 -0
  54. package/dist/QueriesHydration-B28Xmf0f.d.cts.map +1 -0
  55. package/dist/QueriesHydration-CbLB0bKz.mjs +143 -0
  56. package/dist/QueriesHydration-CbLB0bKz.mjs.map +1 -0
  57. package/dist/QueriesHydration-Cd2lBXvZ.cjs +148 -0
  58. package/dist/QueriesHydration-Cd2lBXvZ.cjs.map +1 -0
  59. package/dist/QueriesHydration-D8Kdp7yq.d.mts +106 -0
  60. package/dist/QueriesHydration-D8Kdp7yq.d.mts.map +1 -0
  61. package/dist/QueriesHydration.cjs +2 -117
  62. package/dist/QueriesHydration.d.cts +2 -105
  63. package/dist/QueriesHydration.d.mts +2 -105
  64. package/dist/QueriesHydration.mjs +2 -116
  65. package/dist/QueryClientConsumer-B5vPlxA7.mjs +14 -0
  66. package/dist/QueryClientConsumer-B5vPlxA7.mjs.map +1 -0
  67. package/dist/QueryClientConsumer-COVqqi9y.d.cts +18 -0
  68. package/dist/QueryClientConsumer-COVqqi9y.d.cts.map +1 -0
  69. package/dist/QueryClientConsumer-CsNJXJGM.cjs +19 -0
  70. package/dist/QueryClientConsumer-CsNJXJGM.cjs.map +1 -0
  71. package/dist/QueryClientConsumer-YLHVJlTq.d.mts +18 -0
  72. package/dist/QueryClientConsumer-YLHVJlTq.d.mts.map +1 -0
  73. package/dist/QueryClientConsumer.cjs +2 -14
  74. package/dist/QueryClientConsumer.d.cts +2 -18
  75. package/dist/QueryClientConsumer.d.mts +2 -18
  76. package/dist/QueryClientConsumer.mjs +2 -13
  77. package/dist/SuspenseInfiniteQuery-BZ3SvXkD.mjs +30 -0
  78. package/dist/SuspenseInfiniteQuery-BZ3SvXkD.mjs.map +1 -0
  79. package/dist/SuspenseInfiniteQuery-ByTjC7r9.d.cts +31 -0
  80. package/dist/SuspenseInfiniteQuery-ByTjC7r9.d.cts.map +1 -0
  81. package/dist/SuspenseInfiniteQuery-asj0bHeh.d.mts +31 -0
  82. package/dist/SuspenseInfiniteQuery-asj0bHeh.d.mts.map +1 -0
  83. package/dist/SuspenseInfiniteQuery-qAybH413.cjs +35 -0
  84. package/dist/SuspenseInfiniteQuery-qAybH413.cjs.map +1 -0
  85. package/dist/SuspenseInfiniteQuery.cjs +2 -30
  86. package/dist/SuspenseInfiniteQuery.d.cts +2 -31
  87. package/dist/SuspenseInfiniteQuery.d.mts +2 -31
  88. package/dist/SuspenseInfiniteQuery.mjs +2 -29
  89. package/dist/SuspenseQueries-CZJAU3Eq.d.cts +31 -0
  90. package/dist/SuspenseQueries-CZJAU3Eq.d.cts.map +1 -0
  91. package/dist/SuspenseQueries-DlBy4veI.cjs +31 -0
  92. package/dist/SuspenseQueries-DlBy4veI.cjs.map +1 -0
  93. package/dist/SuspenseQueries-Dv6SQx-C.mjs +26 -0
  94. package/dist/SuspenseQueries-Dv6SQx-C.mjs.map +1 -0
  95. package/dist/SuspenseQueries-Nv07W4mb.d.mts +31 -0
  96. package/dist/SuspenseQueries-Nv07W4mb.d.mts.map +1 -0
  97. package/dist/SuspenseQueries.cjs +2 -26
  98. package/dist/SuspenseQueries.d.cts +2 -30
  99. package/dist/SuspenseQueries.d.mts +2 -30
  100. package/dist/SuspenseQueries.mjs +2 -25
  101. package/dist/SuspenseQuery-BNAZi5mZ.d.cts +31 -0
  102. package/dist/SuspenseQuery-BNAZi5mZ.d.cts.map +1 -0
  103. package/dist/SuspenseQuery-CGEFuzI_.cjs +35 -0
  104. package/dist/SuspenseQuery-CGEFuzI_.cjs.map +1 -0
  105. package/dist/SuspenseQuery-RbgXq6PC.mjs +30 -0
  106. package/dist/SuspenseQuery-RbgXq6PC.mjs.map +1 -0
  107. package/dist/SuspenseQuery-uHIieJ1n.d.mts +31 -0
  108. package/dist/SuspenseQuery-uHIieJ1n.d.mts.map +1 -0
  109. package/dist/SuspenseQuery.cjs +2 -30
  110. package/dist/SuspenseQuery.d.cts +2 -30
  111. package/dist/SuspenseQuery.d.mts +2 -30
  112. package/dist/SuspenseQuery.mjs +2 -29
  113. package/dist/components/ClientOnly.cjs +2 -12
  114. package/dist/components/ClientOnly.d.cts +13 -0
  115. package/dist/components/ClientOnly.d.cts.map +1 -0
  116. package/dist/components/ClientOnly.d.mts +13 -0
  117. package/dist/components/ClientOnly.d.mts.map +1 -0
  118. package/dist/components/ClientOnly.mjs +2 -12
  119. package/dist/createGetQueryClient-Cg34XLqS.cjs +68 -0
  120. package/dist/createGetQueryClient-Cg34XLqS.cjs.map +1 -0
  121. package/dist/createGetQueryClient-Cjacpz3C.mjs +63 -0
  122. package/dist/createGetQueryClient-Cjacpz3C.mjs.map +1 -0
  123. package/dist/createGetQueryClient-DI5GrATJ.d.cts +54 -0
  124. package/dist/createGetQueryClient-DI5GrATJ.d.cts.map +1 -0
  125. package/dist/createGetQueryClient-UFf6keL9.d.mts +54 -0
  126. package/dist/createGetQueryClient-UFf6keL9.d.mts.map +1 -0
  127. package/dist/createGetQueryClient.cjs +2 -63
  128. package/dist/createGetQueryClient.d.cts +2 -53
  129. package/dist/createGetQueryClient.d.mts +2 -53
  130. package/dist/createGetQueryClient.mjs +2 -62
  131. package/dist/index.cjs +12 -27
  132. package/dist/index.d.cts +12 -19
  133. package/dist/index.d.mts +12 -19
  134. package/dist/index.mjs +12 -19
  135. package/dist/mutationOptions-BdXvKAld.d.mts +7 -0
  136. package/dist/mutationOptions-BdXvKAld.d.mts.map +1 -0
  137. package/dist/mutationOptions-CBUqQakM.mjs +8 -0
  138. package/dist/mutationOptions-CBUqQakM.mjs.map +1 -0
  139. package/dist/mutationOptions-CzTorL9K.d.cts +7 -0
  140. package/dist/mutationOptions-CzTorL9K.d.cts.map +1 -0
  141. package/dist/mutationOptions-DNgLRYqd.cjs +14 -0
  142. package/dist/mutationOptions-DNgLRYqd.cjs.map +1 -0
  143. package/dist/mutationOptions.cjs +2 -9
  144. package/dist/mutationOptions.d.cts +2 -7
  145. package/dist/mutationOptions.d.mts +2 -7
  146. package/dist/mutationOptions.mjs +2 -7
  147. package/dist/objectSpread2-DTjFl4q7.mjs +67 -0
  148. package/dist/objectSpread2-DUnXKO-7.cjs +73 -0
  149. package/dist/objectWithoutProperties-BqF6LYLG.cjs +31 -0
  150. package/dist/objectWithoutProperties-DB_n2qVi.mjs +25 -0
  151. package/package.json +4 -4
  152. package/src/IsFetching.tsx +2 -3
  153. package/src/Mutation.tsx +1 -0
  154. package/src/PrefetchInfiniteQuery.tsx +8 -3
  155. package/src/PrefetchQuery.tsx +3 -3
  156. package/src/QueryClientConsumer.tsx +1 -0
  157. package/src/SuspenseInfiniteQuery.tsx +23 -2
  158. package/src/SuspenseQueries.tsx +1 -0
  159. package/src/SuspenseQuery.tsx +1 -0
  160. package/src/components/ClientOnly.tsx +1 -0
  161. package/src/createGetQueryClient.spec.tsx +77 -25
  162. package/src/index.ts +1 -14
  163. package/dist/IsFetching.cjs.map +0 -1
  164. package/dist/IsFetching.d.cts.map +0 -1
  165. package/dist/IsFetching.d.mts.map +0 -1
  166. package/dist/IsFetching.mjs.map +0 -1
  167. package/dist/Mutation.cjs.map +0 -1
  168. package/dist/Mutation.d.cts.map +0 -1
  169. package/dist/Mutation.d.mts.map +0 -1
  170. package/dist/Mutation.mjs.map +0 -1
  171. package/dist/PrefetchInfiniteQuery.cjs.map +0 -1
  172. package/dist/PrefetchInfiniteQuery.d.cts.map +0 -1
  173. package/dist/PrefetchInfiniteQuery.d.mts.map +0 -1
  174. package/dist/PrefetchInfiniteQuery.mjs.map +0 -1
  175. package/dist/PrefetchQuery.cjs.map +0 -1
  176. package/dist/PrefetchQuery.d.cts.map +0 -1
  177. package/dist/PrefetchQuery.d.mts.map +0 -1
  178. package/dist/PrefetchQuery.mjs.map +0 -1
  179. package/dist/QueriesHydration.cjs.map +0 -1
  180. package/dist/QueriesHydration.d.cts.map +0 -1
  181. package/dist/QueriesHydration.d.mts.map +0 -1
  182. package/dist/QueriesHydration.mjs.map +0 -1
  183. package/dist/QueryClientConsumer.cjs.map +0 -1
  184. package/dist/QueryClientConsumer.d.cts.map +0 -1
  185. package/dist/QueryClientConsumer.d.mts.map +0 -1
  186. package/dist/QueryClientConsumer.mjs.map +0 -1
  187. package/dist/SuspenseInfiniteQuery.cjs.map +0 -1
  188. package/dist/SuspenseInfiniteQuery.d.cts.map +0 -1
  189. package/dist/SuspenseInfiniteQuery.d.mts.map +0 -1
  190. package/dist/SuspenseInfiniteQuery.mjs.map +0 -1
  191. package/dist/SuspenseQueries.cjs.map +0 -1
  192. package/dist/SuspenseQueries.d.cts.map +0 -1
  193. package/dist/SuspenseQueries.d.mts.map +0 -1
  194. package/dist/SuspenseQueries.mjs.map +0 -1
  195. package/dist/SuspenseQuery.cjs.map +0 -1
  196. package/dist/SuspenseQuery.d.cts.map +0 -1
  197. package/dist/SuspenseQuery.d.mts.map +0 -1
  198. package/dist/SuspenseQuery.mjs.map +0 -1
  199. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/asyncToGenerator.cjs +0 -29
  200. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/asyncToGenerator.mjs +0 -28
  201. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.cjs +0 -14
  202. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.mjs +0 -14
  203. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.cjs +0 -27
  204. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.mjs +0 -27
  205. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.cjs +0 -15
  206. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.mjs +0 -15
  207. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutPropertiesLoose.cjs +0 -14
  208. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutPropertiesLoose.mjs +0 -13
  209. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPrimitive.cjs +0 -16
  210. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPrimitive.mjs +0 -16
  211. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.cjs +0 -11
  212. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.mjs +0 -11
  213. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/typeof.cjs +0 -18
  214. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/typeof.mjs +0 -12
  215. package/dist/components/ClientOnly.cjs.map +0 -1
  216. package/dist/components/ClientOnly.mjs.map +0 -1
  217. package/dist/createGetQueryClient.cjs.map +0 -1
  218. package/dist/createGetQueryClient.d.cts.map +0 -1
  219. package/dist/createGetQueryClient.d.mts.map +0 -1
  220. package/dist/createGetQueryClient.mjs.map +0 -1
  221. package/dist/infiniteQueryOptions.cjs +0 -18
  222. package/dist/infiniteQueryOptions.cjs.map +0 -1
  223. package/dist/infiniteQueryOptions.d.cts +0 -28
  224. package/dist/infiniteQueryOptions.d.cts.map +0 -1
  225. package/dist/infiniteQueryOptions.d.mts +0 -28
  226. package/dist/infiniteQueryOptions.d.mts.map +0 -1
  227. package/dist/infiniteQueryOptions.mjs +0 -17
  228. package/dist/infiniteQueryOptions.mjs.map +0 -1
  229. package/dist/mutationOptions.cjs.map +0 -1
  230. package/dist/mutationOptions.d.cts.map +0 -1
  231. package/dist/mutationOptions.d.mts.map +0 -1
  232. package/dist/mutationOptions.mjs.map +0 -1
  233. package/dist/queryOptions.cjs +0 -18
  234. package/dist/queryOptions.cjs.map +0 -1
  235. package/dist/queryOptions.d.cts +0 -28
  236. package/dist/queryOptions.d.cts.map +0 -1
  237. package/dist/queryOptions.d.mts +0 -28
  238. package/dist/queryOptions.d.mts.map +0 -1
  239. package/dist/queryOptions.mjs +0 -17
  240. package/dist/queryOptions.mjs.map +0 -1
  241. package/dist/usePrefetchInfiniteQuery.cjs +0 -18
  242. package/dist/usePrefetchInfiniteQuery.cjs.map +0 -1
  243. package/dist/usePrefetchInfiniteQuery.d.cts +0 -11
  244. package/dist/usePrefetchInfiniteQuery.d.cts.map +0 -1
  245. package/dist/usePrefetchInfiniteQuery.d.mts +0 -11
  246. package/dist/usePrefetchInfiniteQuery.d.mts.map +0 -1
  247. package/dist/usePrefetchInfiniteQuery.mjs +0 -17
  248. package/dist/usePrefetchInfiniteQuery.mjs.map +0 -1
  249. package/dist/usePrefetchQuery.cjs +0 -18
  250. package/dist/usePrefetchQuery.cjs.map +0 -1
  251. package/dist/usePrefetchQuery.d.cts +0 -11
  252. package/dist/usePrefetchQuery.d.cts.map +0 -1
  253. package/dist/usePrefetchQuery.d.mts +0 -11
  254. package/dist/usePrefetchQuery.d.mts.map +0 -1
  255. package/dist/usePrefetchQuery.mjs +0 -17
  256. package/dist/usePrefetchQuery.mjs.map +0 -1
  257. package/dist/useSuspenseInfiniteQuery.cjs +0 -20
  258. package/dist/useSuspenseInfiniteQuery.cjs.map +0 -1
  259. package/dist/useSuspenseInfiniteQuery.d.cts +0 -17
  260. package/dist/useSuspenseInfiniteQuery.d.cts.map +0 -1
  261. package/dist/useSuspenseInfiniteQuery.d.mts +0 -17
  262. package/dist/useSuspenseInfiniteQuery.d.mts.map +0 -1
  263. package/dist/useSuspenseInfiniteQuery.mjs +0 -19
  264. package/dist/useSuspenseInfiniteQuery.mjs.map +0 -1
  265. package/dist/useSuspenseQueries.cjs +0 -20
  266. package/dist/useSuspenseQueries.cjs.map +0 -1
  267. package/dist/useSuspenseQueries.d.cts +0 -36
  268. package/dist/useSuspenseQueries.d.cts.map +0 -1
  269. package/dist/useSuspenseQueries.d.mts +0 -36
  270. package/dist/useSuspenseQueries.d.mts.map +0 -1
  271. package/dist/useSuspenseQueries.mjs +0 -19
  272. package/dist/useSuspenseQueries.mjs.map +0 -1
  273. package/dist/useSuspenseQuery.cjs +0 -20
  274. package/dist/useSuspenseQuery.cjs.map +0 -1
  275. package/dist/useSuspenseQuery.d.cts +0 -36
  276. package/dist/useSuspenseQuery.d.cts.map +0 -1
  277. package/dist/useSuspenseQuery.d.mts +0 -36
  278. package/dist/useSuspenseQuery.d.mts.map +0 -1
  279. package/dist/useSuspenseQuery.mjs +0 -19
  280. package/dist/useSuspenseQuery.mjs.map +0 -1
  281. package/src/IsFetching.spec.tsx +0 -34
  282. package/src/infiniteQueryOptions.ts +0 -77
  283. package/src/queryOptions.ts +0 -80
  284. package/src/usePrefetchInfiniteQuery.test-d.tsx +0 -14
  285. package/src/usePrefetchInfiniteQuery.ts +0 -19
  286. package/src/usePrefetchQuery.test-d.tsx +0 -14
  287. package/src/usePrefetchQuery.ts +0 -19
  288. package/src/useSuspenseInfiniteQuery.ts +0 -34
  289. package/src/useSuspenseQueries.ts +0 -47
  290. package/src/useSuspenseQuery.ts +0 -39
@@ -1 +0,0 @@
1
- {"version":3,"file":"SuspenseQueries.mjs","names":[],"sources":["../src/SuspenseQueries.tsx"],"sourcesContent":["'use client'\nimport { type SuspenseQueriesOptions, type SuspenseQueriesResults, useSuspenseQueries } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * We provide these components to clearly express what causes suspense at the same depth.\n * `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseQueries } from '@suspensive/react-query'\n *\n * <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>\n * {([{ data: firstQueryData }, { data: secondQueryData }]) => {\n * return <></>\n * }}\n * </SuspenseQueries>\n * ```\n */\nexport function SuspenseQueries<T extends any[]>({\n children,\n queries,\n}: {\n queries: readonly [...SuspenseQueriesOptions<T>]\n children: (queries: SuspenseQueriesResults<T>) => ReactNode\n}) {\n return <>{children(useSuspenseQueries({ queries }))}</>\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAmBA,SAAgB,gBAAiC,EAC/C,UACA,WAIC;AACD,QAAO,0CAAG,SAAS,mBAAmB,EAAE,SAAS,CAAC,CAAC,EAAI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SuspenseQuery.cjs","names":[],"sources":["../src/SuspenseQuery.tsx"],"sourcesContent":["'use client'\nimport {\n type QueryKey,\n type UseSuspenseQueryOptions,\n type UseSuspenseQueryResult,\n useSuspenseQuery,\n} from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * We provide these components to clearly express what causes suspense at the same depth.\n * `<SuspenseQuery/>` serves to make `useSuspenseQuery` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseQuery Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseQuery } from '@suspensive/react-query'\n *\n * // You can use QueryOptions as props.\n * <SuspenseQuery {...queryOptions()}>\n * {({ data, isLoading }) => {\n * return <></>\n * }\n * </SuspenseQuery>\n * ```\n */\nexport const SuspenseQuery = <\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>({\n children,\n ...options\n}: UseSuspenseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n children: (queryResult: UseSuspenseQueryResult<TData, TError>) => ReactNode\n}) => <>{children(useSuspenseQuery(options))}</>\n"],"mappings":";;;;;;;;mBA+BE;;;;;;;;;;;;;;;;;AANF,MAAa,iBAKX,SAKI;KALJ,EACA;AAII,2FAAG,+HAAkC,CAAC,EAAI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SuspenseQuery.d.cts","names":[],"sources":["../src/SuspenseQuery.tsx"],"mappings":";;;;;;;;AAyBA;;;;;;;;;;;;;cAAa,aAAA,qDAGH,YAAA,oBACU,QAAA,GAAW,QAAA;EAC7B,QAAA;EAAA,GAAA;AAAA,GAGC,uBAAA,CAAwB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,SAAA;EACtD,QAAA,GAAW,WAAA,EAAa,sBAAA,CAAuB,KAAA,EAAO,MAAA,MAAY,SAAA;AAAA,MACnE,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SuspenseQuery.d.mts","names":[],"sources":["../src/SuspenseQuery.tsx"],"mappings":";;;;;;;;AAyBA;;;;;;;;;;;;;cAAa,aAAA,qDAGH,YAAA,oBACU,QAAA,GAAW,QAAA;EAC7B,QAAA;EAAA,GAAA;AAAA,GAGC,uBAAA,CAAwB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,SAAA;EACtD,QAAA,GAAW,WAAA,EAAa,sBAAA,CAAuB,KAAA,EAAO,MAAA,MAAY,SAAA;AAAA,MACnE,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SuspenseQuery.mjs","names":[],"sources":["../src/SuspenseQuery.tsx"],"sourcesContent":["'use client'\nimport {\n type QueryKey,\n type UseSuspenseQueryOptions,\n type UseSuspenseQueryResult,\n useSuspenseQuery,\n} from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * We provide these components to clearly express what causes suspense at the same depth.\n * `<SuspenseQuery/>` serves to make `useSuspenseQuery` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseQuery Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseQuery } from '@suspensive/react-query'\n *\n * // You can use QueryOptions as props.\n * <SuspenseQuery {...queryOptions()}>\n * {({ data, isLoading }) => {\n * return <></>\n * }\n * </SuspenseQuery>\n * ```\n */\nexport const SuspenseQuery = <\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>({\n children,\n ...options\n}: UseSuspenseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n children: (queryResult: UseSuspenseQueryResult<TData, TError>) => ReactNode\n}) => <>{children(useSuspenseQuery(options))}</>\n"],"mappings":";;;;;;;mBA+BE;;;;;;;;;;;;;;;;;AANF,MAAa,iBAKX,SAKI;KALJ,EACA;AAII,kDAAG,SAAS,2DAAyB,CAAC,EAAI"}
@@ -1,29 +0,0 @@
1
-
2
- //#region \0@oxc-project+runtime@0.115.0/helpers/asyncToGenerator.js
3
- function asyncGeneratorStep(n, t, e, r, o, a, c) {
4
- try {
5
- var i = n[a](c), u = i.value;
6
- } catch (n) {
7
- e(n);
8
- return;
9
- }
10
- i.done ? t(u) : Promise.resolve(u).then(r, o);
11
- }
12
- function _asyncToGenerator(n) {
13
- return function() {
14
- var t = this, e = arguments;
15
- return new Promise(function(r, o) {
16
- var a = n.apply(t, e);
17
- function _next(n) {
18
- asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
19
- }
20
- function _throw(n) {
21
- asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
22
- }
23
- _next(void 0);
24
- });
25
- };
26
- }
27
-
28
- //#endregion
29
- exports._asyncToGenerator = _asyncToGenerator;
@@ -1,28 +0,0 @@
1
- //#region \0@oxc-project+runtime@0.115.0/helpers/asyncToGenerator.js
2
- function asyncGeneratorStep(n, t, e, r, o, a, c) {
3
- try {
4
- var i = n[a](c), u = i.value;
5
- } catch (n) {
6
- e(n);
7
- return;
8
- }
9
- i.done ? t(u) : Promise.resolve(u).then(r, o);
10
- }
11
- function _asyncToGenerator(n) {
12
- return function() {
13
- var t = this, e = arguments;
14
- return new Promise(function(r, o) {
15
- var a = n.apply(t, e);
16
- function _next(n) {
17
- asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
18
- }
19
- function _throw(n) {
20
- asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
21
- }
22
- _next(void 0);
23
- });
24
- };
25
- }
26
-
27
- //#endregion
28
- export { _asyncToGenerator };
@@ -1,14 +0,0 @@
1
- const require_toPropertyKey = require('./toPropertyKey.cjs');
2
-
3
- //#region \0@oxc-project+runtime@0.115.0/helpers/defineProperty.js
4
- function _defineProperty(e, r, t) {
5
- return (r = require_toPropertyKey.toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
6
- value: t,
7
- enumerable: !0,
8
- configurable: !0,
9
- writable: !0
10
- }) : e[r] = t, e;
11
- }
12
-
13
- //#endregion
14
- exports._defineProperty = _defineProperty;
@@ -1,14 +0,0 @@
1
- import { toPropertyKey } from "./toPropertyKey.mjs";
2
-
3
- //#region \0@oxc-project+runtime@0.115.0/helpers/defineProperty.js
4
- function _defineProperty(e, r, t) {
5
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
6
- value: t,
7
- enumerable: !0,
8
- configurable: !0,
9
- writable: !0
10
- }) : e[r] = t, e;
11
- }
12
-
13
- //#endregion
14
- export { _defineProperty };
@@ -1,27 +0,0 @@
1
- const require_defineProperty = require('./defineProperty.cjs');
2
-
3
- //#region \0@oxc-project+runtime@0.115.0/helpers/objectSpread2.js
4
- function ownKeys(e, r) {
5
- var t = Object.keys(e);
6
- if (Object.getOwnPropertySymbols) {
7
- var o = Object.getOwnPropertySymbols(e);
8
- r && (o = o.filter(function(r) {
9
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
10
- })), t.push.apply(t, o);
11
- }
12
- return t;
13
- }
14
- function _objectSpread2(e) {
15
- for (var r = 1; r < arguments.length; r++) {
16
- var t = null != arguments[r] ? arguments[r] : {};
17
- r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
18
- require_defineProperty._defineProperty(e, r, t[r]);
19
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
20
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
21
- });
22
- }
23
- return e;
24
- }
25
-
26
- //#endregion
27
- exports._objectSpread2 = _objectSpread2;
@@ -1,27 +0,0 @@
1
- import { _defineProperty } from "./defineProperty.mjs";
2
-
3
- //#region \0@oxc-project+runtime@0.115.0/helpers/objectSpread2.js
4
- function ownKeys(e, r) {
5
- var t = Object.keys(e);
6
- if (Object.getOwnPropertySymbols) {
7
- var o = Object.getOwnPropertySymbols(e);
8
- r && (o = o.filter(function(r) {
9
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
10
- })), t.push.apply(t, o);
11
- }
12
- return t;
13
- }
14
- function _objectSpread2(e) {
15
- for (var r = 1; r < arguments.length; r++) {
16
- var t = null != arguments[r] ? arguments[r] : {};
17
- r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
18
- _defineProperty(e, r, t[r]);
19
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
20
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
21
- });
22
- }
23
- return e;
24
- }
25
-
26
- //#endregion
27
- export { _objectSpread2 };
@@ -1,15 +0,0 @@
1
- const require_objectWithoutPropertiesLoose = require('./objectWithoutPropertiesLoose.cjs');
2
-
3
- //#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutProperties.js
4
- function _objectWithoutProperties(e, t) {
5
- if (null == e) return {};
6
- var o, r, i = require_objectWithoutPropertiesLoose._objectWithoutPropertiesLoose(e, t);
7
- if (Object.getOwnPropertySymbols) {
8
- var s = Object.getOwnPropertySymbols(e);
9
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
10
- }
11
- return i;
12
- }
13
-
14
- //#endregion
15
- exports._objectWithoutProperties = _objectWithoutProperties;
@@ -1,15 +0,0 @@
1
- import { _objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.mjs";
2
-
3
- //#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutProperties.js
4
- function _objectWithoutProperties(e, t) {
5
- if (null == e) return {};
6
- var o, r, i = _objectWithoutPropertiesLoose(e, t);
7
- if (Object.getOwnPropertySymbols) {
8
- var s = Object.getOwnPropertySymbols(e);
9
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
10
- }
11
- return i;
12
- }
13
-
14
- //#endregion
15
- export { _objectWithoutProperties };
@@ -1,14 +0,0 @@
1
-
2
- //#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutPropertiesLoose.js
3
- function _objectWithoutPropertiesLoose(r, e) {
4
- if (null == r) return {};
5
- var t = {};
6
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
7
- if (e.includes(n)) continue;
8
- t[n] = r[n];
9
- }
10
- return t;
11
- }
12
-
13
- //#endregion
14
- exports._objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
@@ -1,13 +0,0 @@
1
- //#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutPropertiesLoose.js
2
- function _objectWithoutPropertiesLoose(r, e) {
3
- if (null == r) return {};
4
- var t = {};
5
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
6
- if (e.includes(n)) continue;
7
- t[n] = r[n];
8
- }
9
- return t;
10
- }
11
-
12
- //#endregion
13
- export { _objectWithoutPropertiesLoose };
@@ -1,16 +0,0 @@
1
- const require_typeof = require('./typeof.cjs');
2
-
3
- //#region \0@oxc-project+runtime@0.115.0/helpers/toPrimitive.js
4
- function toPrimitive(t, r) {
5
- if ("object" != require_typeof._typeof(t) || !t) return t;
6
- var e = t[Symbol.toPrimitive];
7
- if (void 0 !== e) {
8
- var i = e.call(t, r || "default");
9
- if ("object" != require_typeof._typeof(i)) return i;
10
- throw new TypeError("@@toPrimitive must return a primitive value.");
11
- }
12
- return ("string" === r ? String : Number)(t);
13
- }
14
-
15
- //#endregion
16
- exports.toPrimitive = toPrimitive;
@@ -1,16 +0,0 @@
1
- import { _typeof } from "./typeof.mjs";
2
-
3
- //#region \0@oxc-project+runtime@0.115.0/helpers/toPrimitive.js
4
- function toPrimitive(t, r) {
5
- if ("object" != _typeof(t) || !t) return t;
6
- var e = t[Symbol.toPrimitive];
7
- if (void 0 !== e) {
8
- var i = e.call(t, r || "default");
9
- if ("object" != _typeof(i)) return i;
10
- throw new TypeError("@@toPrimitive must return a primitive value.");
11
- }
12
- return ("string" === r ? String : Number)(t);
13
- }
14
-
15
- //#endregion
16
- export { toPrimitive };
@@ -1,11 +0,0 @@
1
- const require_typeof = require('./typeof.cjs');
2
- const require_toPrimitive = require('./toPrimitive.cjs');
3
-
4
- //#region \0@oxc-project+runtime@0.115.0/helpers/toPropertyKey.js
5
- function toPropertyKey(t) {
6
- var i = require_toPrimitive.toPrimitive(t, "string");
7
- return "symbol" == require_typeof._typeof(i) ? i : i + "";
8
- }
9
-
10
- //#endregion
11
- exports.toPropertyKey = toPropertyKey;
@@ -1,11 +0,0 @@
1
- import { _typeof } from "./typeof.mjs";
2
- import { toPrimitive } from "./toPrimitive.mjs";
3
-
4
- //#region \0@oxc-project+runtime@0.115.0/helpers/toPropertyKey.js
5
- function toPropertyKey(t) {
6
- var i = toPrimitive(t, "string");
7
- return "symbol" == _typeof(i) ? i : i + "";
8
- }
9
-
10
- //#endregion
11
- export { toPropertyKey };
@@ -1,18 +0,0 @@
1
-
2
- //#region \0@oxc-project+runtime@0.115.0/helpers/typeof.js
3
- function _typeof(o) {
4
- "@babel/helpers - typeof";
5
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
6
- return typeof o;
7
- } : function(o) {
8
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
9
- }, _typeof(o);
10
- }
11
-
12
- //#endregion
13
- Object.defineProperty(exports, '_typeof', {
14
- enumerable: true,
15
- get: function () {
16
- return _typeof;
17
- }
18
- });
@@ -1,12 +0,0 @@
1
- //#region \0@oxc-project+runtime@0.115.0/helpers/typeof.js
2
- function _typeof(o) {
3
- "@babel/helpers - typeof";
4
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
5
- return typeof o;
6
- } : function(o) {
7
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
- }, _typeof(o);
9
- }
10
-
11
- //#endregion
12
- export { _typeof };
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientOnly.cjs","names":[],"sources":["../../src/components/ClientOnly.tsx"],"sourcesContent":["'use client'\nimport { useSyncExternalStore } from 'react'\n\nconst useIsClient = () => useSyncExternalStore(emptySubscribe, getSnapshot, getServerSnapshot)\n\nconst emptySubscribe = () => () => {}\nconst getSnapshot = () => true\nconst getServerSnapshot = () => false\n\nexport const ClientOnly = ({ children, fallback }: { children: React.ReactNode; fallback: React.ReactNode }) => (\n <>{useIsClient() ? children : fallback}</>\n)\n"],"mappings":";;;;;;AAGA,MAAM,oDAAyC,gBAAgB,aAAa,kBAAkB;AAE9F,MAAM,6BAA6B;AACnC,MAAM,oBAAoB;AAC1B,MAAM,0BAA0B;AAEhC,MAAa,cAAc,EAAE,UAAU,eACrC,mFAAG,aAAa,GAAG,WAAW,UAAY"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientOnly.mjs","names":[],"sources":["../../src/components/ClientOnly.tsx"],"sourcesContent":["'use client'\nimport { useSyncExternalStore } from 'react'\n\nconst useIsClient = () => useSyncExternalStore(emptySubscribe, getSnapshot, getServerSnapshot)\n\nconst emptySubscribe = () => () => {}\nconst getSnapshot = () => true\nconst getServerSnapshot = () => false\n\nexport const ClientOnly = ({ children, fallback }: { children: React.ReactNode; fallback: React.ReactNode }) => (\n <>{useIsClient() ? children : fallback}</>\n)\n"],"mappings":";;;;;;AAGA,MAAM,oBAAoB,qBAAqB,gBAAgB,aAAa,kBAAkB;AAE9F,MAAM,6BAA6B;AACnC,MAAM,oBAAoB;AAC1B,MAAM,0BAA0B;AAEhC,MAAa,cAAc,EAAE,UAAU,eACrC,0CAAG,aAAa,GAAG,WAAW,UAAY"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createGetQueryClient.cjs","names":["isServer","QueryClient"],"sources":["../src/createGetQueryClient.ts"],"sourcesContent":["import { QueryClient, type QueryClientConfig, isServer } from '@tanstack/react-query'\n\n/**\n * Creates a function that returns a QueryClient instance, with different behavior for server and client environments.\n *\n * On the server, it always creates a new QueryClient instance with `cacheTime: Infinity` to prevent data from being garbage collected.\n * On the client, it reuses the same QueryClient instance to avoid recreating it during React's initial render suspension.\n *\n * @experimental This component is experimental and may be changed or removed in the future.\n *\n * @param config - Optional QueryClient configuration. On the server, `cacheTime` will be automatically set to `Infinity`.\n * @returns An object containing a `getQueryClient` function that returns a QueryClient instance.\n *\n * @example\n * ```tsx\n * // Create a get-query-client.ts file in your project:\n * // get-query-client.ts\n * import { createGetQueryClient } from '@suspensive/react-query'\n *\n * export const { getQueryClient } = createGetQueryClient()\n *\n * @example\n * ```tsx\n * // Then import and use it in your code:\n * // app/providers.tsx\n * 'use client'\n *\n * import { QueryClientProvider } from '@tanstack/react-query'\n * import { ReactQueryDevtools } from '@tanstack/react-query-devtools'\n * import { getQueryClient } from '@/app/get-query-client'\n * import type * as React from 'react'\n *\n * export default function Providers({ children }: { children: React.ReactNode }) {\n * const queryClient = getQueryClient()\n *\n * return (\n * <QueryClientProvider client={queryClient}>\n * {children}\n * <ReactQueryDevtools />\n * </QueryClientProvider>\n * )\n * }\n * ```\n *\n * @see {@link https://suspensive.org/docs/react-query/createGetQueryClient Suspensive Docs}\n */\nexport function createGetQueryClient(config: QueryClientConfig = {}) {\n let browserQueryClient: QueryClient | undefined\n const getQueryClientConfig: QueryClientConfig = isServer\n ? {\n ...config,\n defaultOptions: {\n ...config.defaultOptions,\n queries: {\n ...config.defaultOptions?.queries,\n cacheTime: Infinity,\n },\n },\n }\n : config\n\n function getQueryClient() {\n if (isServer) {\n // Server: always make a new query client\n return new QueryClient(getQueryClientConfig)\n }\n // Browser: make a new query client if we don't already have one\n // This is very important, so we don't re-make a new client if React\n // suspends during the initial render. This may not be needed if we\n // have a suspense boundary BELOW the creation of the query client\n if (!browserQueryClient) {\n browserQueryClient = new QueryClient(getQueryClientConfig)\n }\n return browserQueryClient\n }\n\n return { getQueryClient }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,qBAAqB,SAA4B,EAAE,EAAE;;CACnE,IAAI;CACJ,MAAM,uBAA0CA,+GAEvC,eACH,8FACK,OAAO,uBACV,gHACK,OAAO,8FAAgB,gBAC1B,WAAW,WACZ,GACF,GACF,GACD;CAEJ,SAAS,iBAAiB;AACxB,MAAIA,+BAEF,QAAO,IAAIC,kCAAY,qBAAqB;AAM9C,MAAI,CAAC,mBACH,sBAAqB,IAAIA,kCAAY,qBAAqB;AAE5D,SAAO;;AAGT,QAAO,EAAE,gBAAgB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createGetQueryClient.d.cts","names":[],"sources":["../src/createGetQueryClient.ts"],"mappings":";;;;;AA8CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,oBAAA,CAAqB,MAAA,GAAQ,iBAAA;wBAAA,WAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createGetQueryClient.d.mts","names":[],"sources":["../src/createGetQueryClient.ts"],"mappings":";;;;;AA8CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,oBAAA,CAAqB,MAAA,GAAQ,iBAAA;wBAAA,WAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createGetQueryClient.mjs","names":[],"sources":["../src/createGetQueryClient.ts"],"sourcesContent":["import { QueryClient, type QueryClientConfig, isServer } from '@tanstack/react-query'\n\n/**\n * Creates a function that returns a QueryClient instance, with different behavior for server and client environments.\n *\n * On the server, it always creates a new QueryClient instance with `cacheTime: Infinity` to prevent data from being garbage collected.\n * On the client, it reuses the same QueryClient instance to avoid recreating it during React's initial render suspension.\n *\n * @experimental This component is experimental and may be changed or removed in the future.\n *\n * @param config - Optional QueryClient configuration. On the server, `cacheTime` will be automatically set to `Infinity`.\n * @returns An object containing a `getQueryClient` function that returns a QueryClient instance.\n *\n * @example\n * ```tsx\n * // Create a get-query-client.ts file in your project:\n * // get-query-client.ts\n * import { createGetQueryClient } from '@suspensive/react-query'\n *\n * export const { getQueryClient } = createGetQueryClient()\n *\n * @example\n * ```tsx\n * // Then import and use it in your code:\n * // app/providers.tsx\n * 'use client'\n *\n * import { QueryClientProvider } from '@tanstack/react-query'\n * import { ReactQueryDevtools } from '@tanstack/react-query-devtools'\n * import { getQueryClient } from '@/app/get-query-client'\n * import type * as React from 'react'\n *\n * export default function Providers({ children }: { children: React.ReactNode }) {\n * const queryClient = getQueryClient()\n *\n * return (\n * <QueryClientProvider client={queryClient}>\n * {children}\n * <ReactQueryDevtools />\n * </QueryClientProvider>\n * )\n * }\n * ```\n *\n * @see {@link https://suspensive.org/docs/react-query/createGetQueryClient Suspensive Docs}\n */\nexport function createGetQueryClient(config: QueryClientConfig = {}) {\n let browserQueryClient: QueryClient | undefined\n const getQueryClientConfig: QueryClientConfig = isServer\n ? {\n ...config,\n defaultOptions: {\n ...config.defaultOptions,\n queries: {\n ...config.defaultOptions?.queries,\n cacheTime: Infinity,\n },\n },\n }\n : config\n\n function getQueryClient() {\n if (isServer) {\n // Server: always make a new query client\n return new QueryClient(getQueryClientConfig)\n }\n // Browser: make a new query client if we don't already have one\n // This is very important, so we don't re-make a new client if React\n // suspends during the initial render. This may not be needed if we\n // have a suspense boundary BELOW the creation of the query client\n if (!browserQueryClient) {\n browserQueryClient = new QueryClient(getQueryClientConfig)\n }\n return browserQueryClient\n }\n\n return { getQueryClient }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,qBAAqB,SAA4B,EAAE,EAAE;;CACnE,IAAI;CACJ,MAAM,uBAA0C,6CAEvC,eACH,kDACK,OAAO,uBACV,oEACK,OAAO,8FAAgB,gBAC1B,WAAW,WACZ,GACF,GACF,GACD;CAEJ,SAAS,iBAAiB;AACxB,MAAI,SAEF,QAAO,IAAI,YAAY,qBAAqB;AAM9C,MAAI,CAAC,mBACH,sBAAqB,IAAI,YAAY,qBAAqB;AAE5D,SAAO;;AAGT,QAAO,EAAE,gBAAgB"}
@@ -1,18 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- let _tanstack_react_query = require("@tanstack/react-query");
3
-
4
- //#region src/infiniteQueryOptions.ts
5
- /**
6
- * This feature is officially supported in \@tanstack/react-query@^4.41.0, You can proceed with the migration.
7
- * @deprecated Use `infiniteQueryOptions` from \@tanstack/react-query@^4.41.0
8
- * @example
9
- * ```diff
10
- * - import { infiniteQueryOptions } from '@suspensive/react-query'
11
- * + import { infiniteQueryOptions } from '@tanstack/react-query'
12
- * ```
13
- */
14
- const infiniteQueryOptions = _tanstack_react_query.infiniteQueryOptions;
15
-
16
- //#endregion
17
- exports.infiniteQueryOptions = infiniteQueryOptions;
18
- //# sourceMappingURL=infiniteQueryOptions.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infiniteQueryOptions.cjs","names":["original_infiniteQueryOptions"],"sources":["../src/infiniteQueryOptions.ts"],"sourcesContent":["import {\n type InfiniteData,\n type OmitKeyof,\n type QueryKey,\n type UseInfiniteQueryOptions,\n type WithRequired,\n infiniteQueryOptions as original_infiniteQueryOptions,\n} from '@tanstack/react-query'\n\n/**\n * @deprecated There is no `SelectedInfiniteOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type SelectedInfiniteOptions<\n TQueryFnData,\n TError = unknown,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select: (data: InfiniteData<TQueryFnData>) => InfiniteData<TData>\n}\n\n/**\n * @deprecated There is no `UnSelectedInfiniteOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type UnSelectedInfiniteOptions<\n TQueryFnData,\n TError = unknown,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select?: undefined\n}\n\n/**\n * This feature is officially supported in \\@tanstack/react-query@^4.41.0, You can proceed with the migration.\n * @deprecated Use `infiniteQueryOptions` from \\@tanstack/react-query@^4.41.0\n * @example\n * ```diff\n * - import { infiniteQueryOptions } from '@suspensive/react-query'\n * + import { infiniteQueryOptions } from '@tanstack/react-query'\n * ```\n */\nexport const infiniteQueryOptions = original_infiniteQueryOptions\n"],"mappings":";;;;;;;;;;;;;AA4EA,MAAa,uBAAuBA"}
@@ -1,28 +0,0 @@
1
- import { InfiniteData, OmitKeyof, QueryKey, UseInfiniteQueryOptions, WithRequired, infiniteQueryOptions as infiniteQueryOptions$1 } from "@tanstack/react-query";
2
-
3
- //#region src/infiniteQueryOptions.d.ts
4
- /**
5
- * @deprecated There is no `SelectedInfiniteOptions` in \@tanstack/react-query@^4.40.0.
6
- */
7
- type SelectedInfiniteOptions<TQueryFnData, TError = unknown, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
8
- select: (data: InfiniteData<TQueryFnData>) => InfiniteData<TData>;
9
- };
10
- /**
11
- * @deprecated There is no `UnSelectedInfiniteOptions` in \@tanstack/react-query@^4.40.0.
12
- */
13
- type UnSelectedInfiniteOptions<TQueryFnData, TError = unknown, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
14
- select?: undefined;
15
- };
16
- /**
17
- * This feature is officially supported in \@tanstack/react-query@^4.41.0, You can proceed with the migration.
18
- * @deprecated Use `infiniteQueryOptions` from \@tanstack/react-query@^4.41.0
19
- * @example
20
- * ```diff
21
- * - import { infiniteQueryOptions } from '@suspensive/react-query'
22
- * + import { infiniteQueryOptions } from '@tanstack/react-query'
23
- * ```
24
- */
25
- declare const infiniteQueryOptions: typeof infiniteQueryOptions$1;
26
- //#endregion
27
- export { SelectedInfiniteOptions, UnSelectedInfiniteOptions, infiniteQueryOptions };
28
- //# sourceMappingURL=infiniteQueryOptions.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infiniteQueryOptions.d.cts","names":[],"sources":["../src/infiniteQueryOptions.ts"],"mappings":";;;;;AAYA;KAAY,uBAAA,yCAGF,YAAA,CAAa,YAAA,qBACH,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,uBAAA,CAAwB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,YAAA,EAAc,SAAA;EAgBrE,MAAA,GAAS,IAAA,EAAM,YAAA,CAAa,YAAA,MAAkB,YAAA,CAAa,KAAA;AAAA;;;;KAMjD,yBAAA,yCAGF,YAAA,CAAa,YAAA,qBACH,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,uBAAA,CAAwB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,YAAA,EAAc,SAAA;EAgBrE,MAAA;AAAA;;;;;;;;;;cAYW,oBAAA,SAAoB,sBAAA"}
@@ -1,28 +0,0 @@
1
- import { InfiniteData, OmitKeyof, QueryKey, UseInfiniteQueryOptions, WithRequired, infiniteQueryOptions as infiniteQueryOptions$1 } from "@tanstack/react-query";
2
-
3
- //#region src/infiniteQueryOptions.d.ts
4
- /**
5
- * @deprecated There is no `SelectedInfiniteOptions` in \@tanstack/react-query@^4.40.0.
6
- */
7
- type SelectedInfiniteOptions<TQueryFnData, TError = unknown, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
8
- select: (data: InfiniteData<TQueryFnData>) => InfiniteData<TData>;
9
- };
10
- /**
11
- * @deprecated There is no `UnSelectedInfiniteOptions` in \@tanstack/react-query@^4.40.0.
12
- */
13
- type UnSelectedInfiniteOptions<TQueryFnData, TError = unknown, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
14
- select?: undefined;
15
- };
16
- /**
17
- * This feature is officially supported in \@tanstack/react-query@^4.41.0, You can proceed with the migration.
18
- * @deprecated Use `infiniteQueryOptions` from \@tanstack/react-query@^4.41.0
19
- * @example
20
- * ```diff
21
- * - import { infiniteQueryOptions } from '@suspensive/react-query'
22
- * + import { infiniteQueryOptions } from '@tanstack/react-query'
23
- * ```
24
- */
25
- declare const infiniteQueryOptions: typeof infiniteQueryOptions$1;
26
- //#endregion
27
- export { SelectedInfiniteOptions, UnSelectedInfiniteOptions, infiniteQueryOptions };
28
- //# sourceMappingURL=infiniteQueryOptions.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infiniteQueryOptions.d.mts","names":[],"sources":["../src/infiniteQueryOptions.ts"],"mappings":";;;;;AAYA;KAAY,uBAAA,yCAGF,YAAA,CAAa,YAAA,qBACH,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,uBAAA,CAAwB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,YAAA,EAAc,SAAA;EAgBrE,MAAA,GAAS,IAAA,EAAM,YAAA,CAAa,YAAA,MAAkB,YAAA,CAAa,KAAA;AAAA;;;;KAMjD,yBAAA,yCAGF,YAAA,CAAa,YAAA,qBACH,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,uBAAA,CAAwB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,YAAA,EAAc,SAAA;EAgBrE,MAAA;AAAA;;;;;;;;;;cAYW,oBAAA,SAAoB,sBAAA"}
@@ -1,17 +0,0 @@
1
- import { infiniteQueryOptions as infiniteQueryOptions$1 } from "@tanstack/react-query";
2
-
3
- //#region src/infiniteQueryOptions.ts
4
- /**
5
- * This feature is officially supported in \@tanstack/react-query@^4.41.0, You can proceed with the migration.
6
- * @deprecated Use `infiniteQueryOptions` from \@tanstack/react-query@^4.41.0
7
- * @example
8
- * ```diff
9
- * - import { infiniteQueryOptions } from '@suspensive/react-query'
10
- * + import { infiniteQueryOptions } from '@tanstack/react-query'
11
- * ```
12
- */
13
- const infiniteQueryOptions = infiniteQueryOptions$1;
14
-
15
- //#endregion
16
- export { infiniteQueryOptions };
17
- //# sourceMappingURL=infiniteQueryOptions.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infiniteQueryOptions.mjs","names":["original_infiniteQueryOptions"],"sources":["../src/infiniteQueryOptions.ts"],"sourcesContent":["import {\n type InfiniteData,\n type OmitKeyof,\n type QueryKey,\n type UseInfiniteQueryOptions,\n type WithRequired,\n infiniteQueryOptions as original_infiniteQueryOptions,\n} from '@tanstack/react-query'\n\n/**\n * @deprecated There is no `SelectedInfiniteOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type SelectedInfiniteOptions<\n TQueryFnData,\n TError = unknown,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select: (data: InfiniteData<TQueryFnData>) => InfiniteData<TData>\n}\n\n/**\n * @deprecated There is no `UnSelectedInfiniteOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type UnSelectedInfiniteOptions<\n TQueryFnData,\n TError = unknown,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select?: undefined\n}\n\n/**\n * This feature is officially supported in \\@tanstack/react-query@^4.41.0, You can proceed with the migration.\n * @deprecated Use `infiniteQueryOptions` from \\@tanstack/react-query@^4.41.0\n * @example\n * ```diff\n * - import { infiniteQueryOptions } from '@suspensive/react-query'\n * + import { infiniteQueryOptions } from '@tanstack/react-query'\n * ```\n */\nexport const infiniteQueryOptions = original_infiniteQueryOptions\n"],"mappings":";;;;;;;;;;;;AA4EA,MAAa,uBAAuBA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mutationOptions.cjs","names":[],"sources":["../src/mutationOptions.tsx"],"sourcesContent":["import type { UseMutationOptions } from '@tanstack/react-query'\n\nexport function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(\n options: UseMutationOptions<TData, TError, TVariables, TContext>\n): UseMutationOptions<TData, TError, TVariables, TContext> {\n return options\n}\n"],"mappings":";;;AAEA,SAAgB,gBACd,SACyD;AACzD,QAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mutationOptions.d.cts","names":[],"sources":["../src/mutationOptions.tsx"],"mappings":";;;iBAEgB,eAAA,0EAAA,CACd,OAAA,EAAS,kBAAA,CAAmB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,QAAA,IACtD,kBAAA,CAAmB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,QAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mutationOptions.d.mts","names":[],"sources":["../src/mutationOptions.tsx"],"mappings":";;;iBAEgB,eAAA,0EAAA,CACd,OAAA,EAAS,kBAAA,CAAmB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,QAAA,IACtD,kBAAA,CAAmB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,QAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mutationOptions.mjs","names":[],"sources":["../src/mutationOptions.tsx"],"sourcesContent":["import type { UseMutationOptions } from '@tanstack/react-query'\n\nexport function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(\n options: UseMutationOptions<TData, TError, TVariables, TContext>\n): UseMutationOptions<TData, TError, TVariables, TContext> {\n return options\n}\n"],"mappings":";AAEA,SAAgB,gBACd,SACyD;AACzD,QAAO"}
@@ -1,18 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- let _tanstack_react_query = require("@tanstack/react-query");
3
-
4
- //#region src/queryOptions.ts
5
- /**
6
- * This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
7
- * @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
8
- * @example
9
- * ```diff
10
- * - import { queryOptions } from '@suspensive/react-query'
11
- * + import { queryOptions } from '@tanstack/react-query'
12
- * ```
13
- */
14
- const queryOptions = _tanstack_react_query.queryOptions;
15
-
16
- //#endregion
17
- exports.queryOptions = queryOptions;
18
- //# sourceMappingURL=queryOptions.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryOptions.cjs","names":["original_queryOptions"],"sources":["../src/queryOptions.ts"],"sourcesContent":["import {\n type OmitKeyof,\n type QueryKey,\n type UseQueryOptions,\n type WithRequired,\n queryOptions as original_queryOptions,\n} from '@tanstack/react-query'\n\n/**\n * @deprecated There is no `SelectedQueryOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type SelectedQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n | 'getNextPageParam'\n | 'getPreviousPageParam'\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select: (data: TQueryFnData) => TData\n}\n\n/**\n * @deprecated There is no `UnSelectedQueryOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type UnSelectedQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n | 'getNextPageParam'\n | 'getPreviousPageParam'\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select?: undefined\n}\n\n/**\n * This feature is officially supported in \\@tanstack/react-query@^4.40.0, You can proceed with the migration.\n * @deprecated Use `queryOptions` from \\@tanstack/react-query@^4.40.0\n * @example\n * ```diff\n * - import { queryOptions } from '@suspensive/react-query'\n * + import { queryOptions } from '@tanstack/react-query'\n * ```\n */\nexport const queryOptions = original_queryOptions\n"],"mappings":";;;;;;;;;;;;;AA+EA,MAAa,eAAeA"}
@@ -1,28 +0,0 @@
1
- import { OmitKeyof, QueryKey, UseQueryOptions, WithRequired, queryOptions as queryOptions$1 } from "@tanstack/react-query";
2
-
3
- //#region src/queryOptions.d.ts
4
- /**
5
- * @deprecated There is no `SelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
6
- */
7
- type SelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
8
- select: (data: TQueryFnData) => TData;
9
- };
10
- /**
11
- * @deprecated There is no `UnSelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
12
- */
13
- type UnSelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
14
- select?: undefined;
15
- };
16
- /**
17
- * This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
18
- * @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
19
- * @example
20
- * ```diff
21
- * - import { queryOptions } from '@suspensive/react-query'
22
- * + import { queryOptions } from '@tanstack/react-query'
23
- * ```
24
- */
25
- declare const queryOptions: typeof queryOptions$1;
26
- //#endregion
27
- export { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions };
28
- //# sourceMappingURL=queryOptions.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryOptions.d.cts","names":[],"sources":["../src/queryOptions.ts"],"mappings":";;;;;AAWA;KAAY,oBAAA,mDAGF,YAAA,oBACU,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,eAAA,CAAgB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,SAAA;EAkB/C,MAAA,GAAS,IAAA,EAAM,YAAA,KAAiB,KAAA;AAAA;;;;KAMtB,sBAAA,mDAGF,YAAA,oBACU,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,eAAA,CAAgB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,SAAA;EAkB/C,MAAA;AAAA;;;;;;;;;;cAYW,YAAA,SAAY,cAAA"}
@@ -1,28 +0,0 @@
1
- import { OmitKeyof, QueryKey, UseQueryOptions, WithRequired, queryOptions as queryOptions$1 } from "@tanstack/react-query";
2
-
3
- //#region src/queryOptions.d.ts
4
- /**
5
- * @deprecated There is no `SelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
6
- */
7
- type SelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
8
- select: (data: TQueryFnData) => TData;
9
- };
10
- /**
11
- * @deprecated There is no `UnSelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
12
- */
13
- type UnSelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
14
- select?: undefined;
15
- };
16
- /**
17
- * This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
18
- * @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
19
- * @example
20
- * ```diff
21
- * - import { queryOptions } from '@suspensive/react-query'
22
- * + import { queryOptions } from '@tanstack/react-query'
23
- * ```
24
- */
25
- declare const queryOptions: typeof queryOptions$1;
26
- //#endregion
27
- export { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions };
28
- //# sourceMappingURL=queryOptions.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryOptions.d.mts","names":[],"sources":["../src/queryOptions.ts"],"mappings":";;;;;AAWA;KAAY,oBAAA,mDAGF,YAAA,oBACU,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,eAAA,CAAgB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,SAAA;EAkB/C,MAAA,GAAS,IAAA,EAAM,YAAA,KAAiB,KAAA;AAAA;;;;KAMtB,sBAAA,mDAGF,YAAA,oBACU,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,eAAA,CAAgB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,SAAA;EAkB/C,MAAA;AAAA;;;;;;;;;;cAYW,YAAA,SAAY,cAAA"}