@suspensive/react-query-4 3.15.1 → 3.17.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.
- package/dist/{ClientOnly-P5h-7PhS.mjs → ClientOnly-BdmzVYnI.mjs} +1 -1
- package/dist/{ClientOnly-P5h-7PhS.mjs.map → ClientOnly-BdmzVYnI.mjs.map} +1 -1
- package/dist/{IsFetching-DWmZ80q2.mjs → IsFetching-94upYqWP.mjs} +1 -1
- package/dist/{IsFetching-DWmZ80q2.mjs.map → IsFetching-94upYqWP.mjs.map} +1 -1
- package/dist/{IsFetching-3KG146_K.d.mts → IsFetching-BLwpeMoH.d.mts} +3 -3
- package/dist/{IsFetching-DZvSjDTq.d.cts.map → IsFetching-BLwpeMoH.d.mts.map} +1 -1
- package/dist/{IsFetching-DZvSjDTq.d.cts → IsFetching-KHFEg_eS.d.cts} +3 -3
- package/dist/{IsFetching-3KG146_K.d.mts.map → IsFetching-KHFEg_eS.d.cts.map} +1 -1
- package/dist/IsFetching.d.cts +1 -1
- package/dist/IsFetching.d.mts +1 -1
- package/dist/IsFetching.mjs +1 -1
- package/dist/{Mutation-CR3oXQ6p.d.mts → Mutation-CGpbCg54.d.mts} +1 -1
- package/dist/{Mutation-CR3oXQ6p.d.mts.map → Mutation-CGpbCg54.d.mts.map} +1 -1
- package/dist/{Mutation-CkHa5_Af.mjs → Mutation-Dh5n54P8.mjs} +2 -2
- package/dist/{Mutation-CkHa5_Af.mjs.map → Mutation-Dh5n54P8.mjs.map} +1 -1
- package/dist/{Mutation-DClZyxmF.d.cts → Mutation-Dt5kUsd8.d.cts} +1 -1
- package/dist/{Mutation-DClZyxmF.d.cts.map → Mutation-Dt5kUsd8.d.cts.map} +1 -1
- package/dist/Mutation.d.cts +1 -1
- package/dist/Mutation.d.mts +1 -1
- package/dist/Mutation.mjs +2 -2
- package/dist/{PrefetchInfiniteQuery-DtZ7itiY.d.mts → PrefetchInfiniteQuery-BewcG5rR.d.cts} +3 -3
- package/dist/{PrefetchInfiniteQuery-B9hGVsbw.d.cts.map → PrefetchInfiniteQuery-BewcG5rR.d.cts.map} +1 -1
- package/dist/{PrefetchInfiniteQuery-B9hGVsbw.d.cts → PrefetchInfiniteQuery-Dkd2ChpC.d.mts} +3 -3
- package/dist/{PrefetchInfiniteQuery-DtZ7itiY.d.mts.map → PrefetchInfiniteQuery-Dkd2ChpC.d.mts.map} +1 -1
- package/dist/{PrefetchInfiniteQuery-C0eOVFlg.mjs → PrefetchInfiniteQuery-RS3Qz-7B.mjs} +2 -2
- package/dist/{PrefetchInfiniteQuery-C0eOVFlg.mjs.map → PrefetchInfiniteQuery-RS3Qz-7B.mjs.map} +1 -1
- package/dist/PrefetchInfiniteQuery.d.cts +1 -1
- package/dist/PrefetchInfiniteQuery.d.mts +1 -1
- package/dist/PrefetchInfiniteQuery.mjs +2 -2
- package/dist/{PrefetchQuery-PoJ8NbtL.d.mts → PrefetchQuery-BfNg0tKA.d.cts} +3 -3
- package/dist/{PrefetchQuery-DJQ3O6jL.d.cts.map → PrefetchQuery-BfNg0tKA.d.cts.map} +1 -1
- package/dist/{PrefetchQuery-DJQ3O6jL.d.cts → PrefetchQuery-CoxqaDzh.d.mts} +2 -2
- package/dist/{PrefetchQuery-PoJ8NbtL.d.mts.map → PrefetchQuery-CoxqaDzh.d.mts.map} +1 -1
- package/dist/{PrefetchQuery-7QYRCNcB.mjs → PrefetchQuery-uh4idoXK.mjs} +2 -2
- package/dist/{PrefetchQuery-7QYRCNcB.mjs.map → PrefetchQuery-uh4idoXK.mjs.map} +1 -1
- package/dist/PrefetchQuery.d.cts +1 -1
- package/dist/PrefetchQuery.d.mts +1 -1
- package/dist/PrefetchQuery.mjs +2 -2
- package/dist/{QueriesHydration-COAxA2eo.d.cts → QueriesHydration-BCGsQdvj.d.cts} +1 -1
- package/dist/{QueriesHydration-COAxA2eo.d.cts.map → QueriesHydration-BCGsQdvj.d.cts.map} +1 -1
- package/dist/{QueriesHydration-CdvYxMoD.d.mts → QueriesHydration-Bna6eo52.d.mts} +3 -3
- package/dist/{QueriesHydration-CdvYxMoD.d.mts.map → QueriesHydration-Bna6eo52.d.mts.map} +1 -1
- package/dist/{QueriesHydration-CJDH1B_7.cjs → QueriesHydration-CQ5Lct-O.cjs} +3 -68
- package/dist/{QueriesHydration-CJDH1B_7.cjs.map → QueriesHydration-CQ5Lct-O.cjs.map} +1 -1
- package/dist/{QueriesHydration-C8w5Rm3q.mjs → QueriesHydration-D-iXKM2g.mjs} +4 -69
- package/dist/{QueriesHydration-C8w5Rm3q.mjs.map → QueriesHydration-D-iXKM2g.mjs.map} +1 -1
- package/dist/QueriesHydration.cjs +2 -1
- package/dist/QueriesHydration.d.cts +1 -1
- package/dist/QueriesHydration.d.mts +1 -1
- package/dist/QueriesHydration.mjs +4 -3
- package/dist/{QueryClientConsumer-BXcUnpLu.d.mts → QueryClientConsumer-DNur-77Z.d.mts} +3 -3
- package/dist/{QueryClientConsumer-BXcUnpLu.d.mts.map → QueryClientConsumer-DNur-77Z.d.mts.map} +1 -1
- package/dist/{QueryClientConsumer-DspevCdg.mjs → QueryClientConsumer-e7PyaFF3.mjs} +1 -1
- package/dist/{QueryClientConsumer-DspevCdg.mjs.map → QueryClientConsumer-e7PyaFF3.mjs.map} +1 -1
- package/dist/{QueryClientConsumer-DjbiW3QY.cjs → QueryClientConsumer-mF0OUwkq.cjs} +1 -1
- package/dist/{QueryClientConsumer-DjbiW3QY.cjs.map → QueryClientConsumer-mF0OUwkq.cjs.map} +1 -1
- package/dist/{QueryClientConsumer-BrLhJAim.d.cts → QueryClientConsumer-pihgMOoA.d.cts} +1 -1
- package/dist/{QueryClientConsumer-BrLhJAim.d.cts.map → QueryClientConsumer-pihgMOoA.d.cts.map} +1 -1
- package/dist/QueryClientConsumer.cjs +1 -1
- package/dist/QueryClientConsumer.d.cts +1 -1
- package/dist/QueryClientConsumer.d.mts +1 -1
- package/dist/QueryClientConsumer.mjs +1 -1
- package/dist/{SuspenseInfiniteQuery-BDTZAWs7.d.cts → SuspenseInfiniteQuery-BwSKmJgm.d.cts} +2 -2
- package/dist/{SuspenseInfiniteQuery-BDTZAWs7.d.cts.map → SuspenseInfiniteQuery-BwSKmJgm.d.cts.map} +1 -1
- package/dist/{SuspenseInfiniteQuery-Dm9U1IPG.d.mts → SuspenseInfiniteQuery-CDKieP3L.d.mts} +4 -4
- package/dist/{SuspenseInfiniteQuery-Dm9U1IPG.d.mts.map → SuspenseInfiniteQuery-CDKieP3L.d.mts.map} +1 -1
- package/dist/{SuspenseInfiniteQuery-CTap1GdP.mjs → SuspenseInfiniteQuery-CZ73eUHy.mjs} +2 -2
- package/dist/{SuspenseInfiniteQuery-CTap1GdP.mjs.map → SuspenseInfiniteQuery-CZ73eUHy.mjs.map} +1 -1
- package/dist/{SuspenseInfiniteQuery-BZCYAjw-.cjs → SuspenseInfiniteQuery-DOYHl2Cu.cjs} +1 -1
- package/dist/{SuspenseInfiniteQuery-BZCYAjw-.cjs.map → SuspenseInfiniteQuery-DOYHl2Cu.cjs.map} +1 -1
- package/dist/SuspenseInfiniteQuery.cjs +1 -1
- package/dist/SuspenseInfiniteQuery.d.cts +2 -2
- package/dist/SuspenseInfiniteQuery.d.mts +2 -2
- package/dist/SuspenseInfiniteQuery.mjs +2 -2
- package/dist/{SuspenseQueries-Bij_jBgE.cjs → SuspenseQueries-Brk6gtMw.cjs} +1 -1
- package/dist/{SuspenseQueries-Bij_jBgE.cjs.map → SuspenseQueries-Brk6gtMw.cjs.map} +1 -1
- package/dist/{SuspenseQueries-dN78EqbL.mjs → SuspenseQueries-C0mF_XD_.mjs} +1 -1
- package/dist/{SuspenseQueries-dN78EqbL.mjs.map → SuspenseQueries-C0mF_XD_.mjs.map} +1 -1
- package/dist/{SuspenseQueries-DAXTYR9M.d.mts → SuspenseQueries-CfsA2n8v.d.mts} +1 -1
- package/dist/{SuspenseQueries-DAXTYR9M.d.mts.map → SuspenseQueries-CfsA2n8v.d.mts.map} +1 -1
- package/dist/{SuspenseQueries-GYiP7qAa.d.cts → SuspenseQueries-wO-fCk30.d.cts} +3 -3
- package/dist/{SuspenseQueries-GYiP7qAa.d.cts.map → SuspenseQueries-wO-fCk30.d.cts.map} +1 -1
- package/dist/SuspenseQueries.cjs +1 -1
- package/dist/SuspenseQueries.d.cts +1 -1
- package/dist/SuspenseQueries.d.mts +1 -1
- package/dist/SuspenseQueries.mjs +1 -1
- package/dist/{SuspenseQuery-7Zbz551V.cjs → SuspenseQuery-B-SvR9l0.cjs} +1 -1
- package/dist/{SuspenseQuery-7Zbz551V.cjs.map → SuspenseQuery-B-SvR9l0.cjs.map} +1 -1
- package/dist/{SuspenseQuery-Bg3h1Es3.d.cts → SuspenseQuery-C4Og1-Xi.d.mts} +3 -3
- package/dist/{SuspenseQuery-Bg3h1Es3.d.cts.map → SuspenseQuery-C4Og1-Xi.d.mts.map} +1 -1
- package/dist/{SuspenseQuery-COzwc2gl.mjs → SuspenseQuery-C8eBAEnT.mjs} +2 -2
- package/dist/{SuspenseQuery-COzwc2gl.mjs.map → SuspenseQuery-C8eBAEnT.mjs.map} +1 -1
- package/dist/{SuspenseQuery-CjQ3EBKI.d.mts → SuspenseQuery-D4IZU_Co.d.cts} +3 -3
- package/dist/{SuspenseQuery-CjQ3EBKI.d.mts.map → SuspenseQuery-D4IZU_Co.d.cts.map} +1 -1
- package/dist/SuspenseQuery.cjs +1 -1
- package/dist/SuspenseQuery.d.cts +1 -1
- package/dist/SuspenseQuery.d.mts +1 -1
- package/dist/SuspenseQuery.mjs +2 -2
- package/dist/components/ClientOnly.d.cts +2 -2
- package/dist/components/ClientOnly.d.mts +2 -2
- package/dist/components/ClientOnly.mjs +1 -1
- package/dist/createGetQueryClient-CNRrumkK.cjs +68 -0
- package/dist/createGetQueryClient-CNRrumkK.cjs.map +1 -0
- package/dist/createGetQueryClient-DTKVVwpJ.d.mts +54 -0
- package/dist/createGetQueryClient-DTKVVwpJ.d.mts.map +1 -0
- package/dist/createGetQueryClient-DwJ6i2aT.mjs +63 -0
- package/dist/createGetQueryClient-DwJ6i2aT.mjs.map +1 -0
- package/dist/createGetQueryClient-iXoXO7so.d.cts +54 -0
- package/dist/createGetQueryClient-iXoXO7so.d.cts.map +1 -0
- package/dist/createGetQueryClient.cjs +4 -0
- package/dist/createGetQueryClient.d.cts +2 -0
- package/dist/createGetQueryClient.d.mts +2 -0
- package/dist/createGetQueryClient.mjs +4 -0
- package/dist/index.cjs +14 -11
- package/dist/index.d.cts +19 -18
- package/dist/index.d.mts +19 -18
- package/dist/index.mjs +22 -20
- package/dist/{infiniteQueryOptions-C27u8Ixn.mjs → infiniteQueryOptions-2KFmTqEY.mjs} +1 -1
- package/dist/{infiniteQueryOptions-C27u8Ixn.mjs.map → infiniteQueryOptions-2KFmTqEY.mjs.map} +1 -1
- package/dist/{infiniteQueryOptions-1njTxHGL.cjs → infiniteQueryOptions-BVac5B-c.cjs} +1 -1
- package/dist/{infiniteQueryOptions-1njTxHGL.cjs.map → infiniteQueryOptions-BVac5B-c.cjs.map} +1 -1
- package/dist/{infiniteQueryOptions-B8E274sw.d.mts → infiniteQueryOptions-Be7VYTUR.d.cts} +1 -1
- package/dist/{infiniteQueryOptions-B8E274sw.d.mts.map → infiniteQueryOptions-Be7VYTUR.d.cts.map} +1 -1
- package/dist/{infiniteQueryOptions-DlBYY8gQ.d.cts → infiniteQueryOptions-Bpz4mFYH.d.mts} +1 -1
- package/dist/{infiniteQueryOptions-DlBYY8gQ.d.cts.map → infiniteQueryOptions-Bpz4mFYH.d.mts.map} +1 -1
- package/dist/infiniteQueryOptions.cjs +1 -1
- package/dist/infiniteQueryOptions.d.cts +1 -1
- package/dist/infiniteQueryOptions.d.mts +1 -1
- package/dist/infiniteQueryOptions.mjs +1 -1
- package/dist/{mutationOptions-CPRFk8op.cjs → mutationOptions-BIOn3zne.cjs} +1 -1
- package/dist/{mutationOptions-CPRFk8op.cjs.map → mutationOptions-BIOn3zne.cjs.map} +1 -1
- package/dist/{mutationOptions-Clj_vPii.d.cts → mutationOptions-BZS10WEJ.d.mts} +1 -1
- package/dist/{mutationOptions-C9u4Q4VU.d.mts.map → mutationOptions-BZS10WEJ.d.mts.map} +1 -1
- package/dist/{mutationOptions-VOkWleB4.mjs → mutationOptions-C4emetVL.mjs} +1 -1
- package/dist/{mutationOptions-VOkWleB4.mjs.map → mutationOptions-C4emetVL.mjs.map} +1 -1
- package/dist/{mutationOptions-C9u4Q4VU.d.mts → mutationOptions-Eid3aM1W.d.cts} +1 -1
- package/dist/{mutationOptions-Clj_vPii.d.cts.map → mutationOptions-Eid3aM1W.d.cts.map} +1 -1
- package/dist/mutationOptions.cjs +1 -1
- package/dist/mutationOptions.d.cts +1 -1
- package/dist/mutationOptions.d.mts +1 -1
- package/dist/mutationOptions.mjs +1 -1
- package/dist/objectSpread2-BHq2muQo.mjs +67 -0
- package/dist/objectSpread2-CGqp5tYf.cjs +73 -0
- package/dist/{queryOptions-DOVbAJjO.cjs → queryOptions-92vSd4eV.cjs} +1 -1
- package/dist/{queryOptions-DOVbAJjO.cjs.map → queryOptions-92vSd4eV.cjs.map} +1 -1
- package/dist/{queryOptions-D42SP_vE.d.mts → queryOptions-DILe-4vk.d.mts} +1 -1
- package/dist/{queryOptions-D42SP_vE.d.mts.map → queryOptions-DILe-4vk.d.mts.map} +1 -1
- package/dist/{queryOptions-Z6iEA5XS.d.cts → queryOptions-DNGHeGX5.d.cts} +1 -1
- package/dist/{queryOptions-Z6iEA5XS.d.cts.map → queryOptions-DNGHeGX5.d.cts.map} +1 -1
- package/dist/{queryOptions-WyeTyhoy.mjs → queryOptions-Dnf4-wlk.mjs} +1 -1
- package/dist/{queryOptions-WyeTyhoy.mjs.map → queryOptions-Dnf4-wlk.mjs.map} +1 -1
- package/dist/queryOptions.cjs +1 -1
- package/dist/queryOptions.d.cts +1 -1
- package/dist/queryOptions.d.mts +1 -1
- package/dist/queryOptions.mjs +1 -1
- package/dist/{usePrefetchInfiniteQuery-xFsVE7gF.d.mts → usePrefetchInfiniteQuery-B0_Ladyp.d.mts} +1 -1
- package/dist/{usePrefetchInfiniteQuery-Db5oZ2b_.d.cts.map → usePrefetchInfiniteQuery-B0_Ladyp.d.mts.map} +1 -1
- package/dist/{usePrefetchInfiniteQuery-DZiSAbIS.mjs → usePrefetchInfiniteQuery-CQSN-P9m.mjs} +1 -1
- package/dist/{usePrefetchInfiniteQuery-DZiSAbIS.mjs.map → usePrefetchInfiniteQuery-CQSN-P9m.mjs.map} +1 -1
- package/dist/{usePrefetchInfiniteQuery-Db5oZ2b_.d.cts → usePrefetchInfiniteQuery-CRwRctQH.d.cts} +1 -1
- package/dist/{usePrefetchInfiniteQuery-xFsVE7gF.d.mts.map → usePrefetchInfiniteQuery-CRwRctQH.d.cts.map} +1 -1
- package/dist/usePrefetchInfiniteQuery.d.cts +1 -1
- package/dist/usePrefetchInfiniteQuery.d.mts +1 -1
- package/dist/usePrefetchInfiniteQuery.mjs +1 -1
- package/dist/{usePrefetchQuery-CIIwQHYI.d.mts → usePrefetchQuery-38O319FT.d.mts} +1 -1
- package/dist/{usePrefetchQuery-CIIwQHYI.d.mts.map → usePrefetchQuery-38O319FT.d.mts.map} +1 -1
- package/dist/{usePrefetchQuery-DoUOJZwe.d.cts → usePrefetchQuery-93Pltnzl.d.cts} +1 -1
- package/dist/{usePrefetchQuery-DoUOJZwe.d.cts.map → usePrefetchQuery-93Pltnzl.d.cts.map} +1 -1
- package/dist/{usePrefetchQuery-RuK6ZS1I.mjs → usePrefetchQuery-CtrJciA6.mjs} +1 -1
- package/dist/{usePrefetchQuery-RuK6ZS1I.mjs.map → usePrefetchQuery-CtrJciA6.mjs.map} +1 -1
- package/dist/usePrefetchQuery.d.cts +1 -1
- package/dist/usePrefetchQuery.d.mts +1 -1
- package/dist/usePrefetchQuery.mjs +1 -1
- package/dist/{useSuspenseInfiniteQuery-CMhbiMDc.d.cts → useSuspenseInfiniteQuery-Bh0nh8Kc.d.mts} +1 -1
- package/dist/{useSuspenseInfiniteQuery-CMhbiMDc.d.cts.map → useSuspenseInfiniteQuery-Bh0nh8Kc.d.mts.map} +1 -1
- package/dist/{useSuspenseInfiniteQuery-CbW_Lnv4.cjs → useSuspenseInfiniteQuery-CA0jmgbX.cjs} +1 -1
- package/dist/{useSuspenseInfiniteQuery-CbW_Lnv4.cjs.map → useSuspenseInfiniteQuery-CA0jmgbX.cjs.map} +1 -1
- package/dist/{useSuspenseInfiniteQuery-BVmSR5yZ.mjs → useSuspenseInfiniteQuery-DUxKOkCo.mjs} +1 -1
- package/dist/{useSuspenseInfiniteQuery-BVmSR5yZ.mjs.map → useSuspenseInfiniteQuery-DUxKOkCo.mjs.map} +1 -1
- package/dist/{useSuspenseInfiniteQuery-Dvy7bTQq.d.mts → useSuspenseInfiniteQuery-xXu-A7cX.d.cts} +1 -1
- package/dist/{useSuspenseInfiniteQuery-Dvy7bTQq.d.mts.map → useSuspenseInfiniteQuery-xXu-A7cX.d.cts.map} +1 -1
- package/dist/useSuspenseInfiniteQuery.cjs +1 -1
- package/dist/useSuspenseInfiniteQuery.d.cts +1 -1
- package/dist/useSuspenseInfiniteQuery.d.mts +1 -1
- package/dist/useSuspenseInfiniteQuery.mjs +1 -1
- package/dist/{useSuspenseQueries-DqT8AKu2.mjs → useSuspenseQueries-Bf0lSTWB.mjs} +1 -1
- package/dist/{useSuspenseQueries-DqT8AKu2.mjs.map → useSuspenseQueries-Bf0lSTWB.mjs.map} +1 -1
- package/dist/{useSuspenseQueries-DFtL_xO-.d.mts → useSuspenseQueries-CHPLAyeb.d.cts} +1 -1
- package/dist/{useSuspenseQueries-DFtL_xO-.d.mts.map → useSuspenseQueries-CHPLAyeb.d.cts.map} +1 -1
- package/dist/{useSuspenseQueries-DE-hB5GR.cjs → useSuspenseQueries-DqBaOI3L.cjs} +1 -1
- package/dist/{useSuspenseQueries-DE-hB5GR.cjs.map → useSuspenseQueries-DqBaOI3L.cjs.map} +1 -1
- package/dist/{useSuspenseQueries-DNZH-duj.d.cts → useSuspenseQueries-pfI8hFSM.d.mts} +1 -1
- package/dist/{useSuspenseQueries-DNZH-duj.d.cts.map → useSuspenseQueries-pfI8hFSM.d.mts.map} +1 -1
- package/dist/useSuspenseQueries.cjs +1 -1
- package/dist/useSuspenseQueries.d.cts +1 -1
- package/dist/useSuspenseQueries.d.mts +1 -1
- package/dist/useSuspenseQueries.mjs +1 -1
- package/dist/{useSuspenseQuery-B7HJXyZL.cjs → useSuspenseQuery-41ONxa6i.cjs} +1 -1
- package/dist/{useSuspenseQuery-B7HJXyZL.cjs.map → useSuspenseQuery-41ONxa6i.cjs.map} +1 -1
- package/dist/{useSuspenseQuery-BvMsQ1Ho.mjs → useSuspenseQuery-CVWQeHhd.mjs} +1 -1
- package/dist/{useSuspenseQuery-BvMsQ1Ho.mjs.map → useSuspenseQuery-CVWQeHhd.mjs.map} +1 -1
- package/dist/{useSuspenseQuery-07kIGch-.d.cts → useSuspenseQuery-DG0Jz1Da.d.mts} +1 -1
- package/dist/{useSuspenseQuery-07kIGch-.d.cts.map → useSuspenseQuery-DG0Jz1Da.d.mts.map} +1 -1
- package/dist/{useSuspenseQuery-CMEH7kZ8.d.mts → useSuspenseQuery-DiNomNWA.d.cts} +1 -1
- package/dist/{useSuspenseQuery-CMEH7kZ8.d.mts.map → useSuspenseQuery-DiNomNWA.d.cts.map} +1 -1
- package/dist/useSuspenseQuery.cjs +1 -1
- package/dist/useSuspenseQuery.d.cts +1 -1
- package/dist/useSuspenseQuery.d.mts +1 -1
- package/dist/useSuspenseQuery.mjs +1 -1
- package/package.json +3 -3
- package/src/QueriesHydration.spec.tsx +257 -0
- package/src/QueriesHydration.test-d.tsx +76 -0
- package/src/createGetQueryClient.spec.tsx +118 -0
- package/src/createGetQueryClient.test-d.tsx +14 -0
- package/src/createGetQueryClient.ts +78 -0
- package/src/index.ts +1 -0
- /package/dist/{objectWithoutProperties-VHBPpeSg.mjs → objectWithoutProperties-MpQDFxYs.mjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientOnly-
|
|
1
|
+
{"version":3,"file":"ClientOnly-BdmzVYnI.mjs","names":[],"sources":["../src/components/ClientOnly.tsx"],"sourcesContent":["'use client'\n\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":";;;;AAIA,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,WAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsFetching-
|
|
1
|
+
{"version":3,"file":"IsFetching-94upYqWP.mjs","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":["'use client'\n\nimport { type QueryFilters, useIsFetching } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * @experimental This is an experimental feature.\n */\nexport const IsFetching = ({\n children,\n}: QueryFilters & { children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode }) => (\n <>{children(useIsFetching())}</>\n)\n"],"mappings":";;;;;;;AAQA,MAAa,cAAc,EACzB,eAEA,0CAAG,SAAS,eAAe,CAAC,GAAI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryFilters, useIsFetching } from "@tanstack/react-query";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/IsFetching.d.ts
|
|
@@ -10,7 +10,7 @@ declare const IsFetching: ({
|
|
|
10
10
|
children
|
|
11
11
|
}: QueryFilters & {
|
|
12
12
|
children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode;
|
|
13
|
-
}) =>
|
|
13
|
+
}) => react_jsx_runtime7.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { IsFetching as t };
|
|
16
|
-
//# sourceMappingURL=IsFetching-
|
|
16
|
+
//# sourceMappingURL=IsFetching-BLwpeMoH.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsFetching-
|
|
1
|
+
{"version":3,"file":"IsFetching-BLwpeMoH.d.mts","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAQa,cAAA,UAIZ,EAAA,CAAA;EAAA;CAAA,EAFE,YAEF,GAAA;EAJ0B,QAAA,EAAA,CAAA,UAAA,EAEgB,UAFhB,CAAA,OAEkC,aAFlC,CAAA,EAAA,GAEqD,SAFrD;CAExB,EAAA,GAAwF,kBAAA,CAAA,GAAA,CAAA,OAAxF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
import { QueryFilters, useIsFetching } from "@tanstack/react-query";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ declare const IsFetching: ({
|
|
|
10
10
|
children
|
|
11
11
|
}: QueryFilters & {
|
|
12
12
|
children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode;
|
|
13
|
-
}) =>
|
|
13
|
+
}) => react_jsx_runtime8.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { IsFetching as t };
|
|
16
|
-
//# sourceMappingURL=IsFetching-
|
|
16
|
+
//# sourceMappingURL=IsFetching-KHFEg_eS.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsFetching-
|
|
1
|
+
{"version":3,"file":"IsFetching-KHFEg_eS.d.cts","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAQa,cAAA,UAIZ,EAAA,CAAA;EAAA;CAAA,EAFE,YAEF,GAAA;EAJ0B,QAAA,EAAA,CAAA,UAAA,EAEgB,UAFhB,CAAA,OAEkC,aAFlC,CAAA,EAAA,GAEqD,SAFrD;CAExB,EAAA,GAAwF,kBAAA,CAAA,GAAA,CAAA,OAAxF"}
|
package/dist/IsFetching.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IsFetching } from "./IsFetching-
|
|
1
|
+
import { t as IsFetching } from "./IsFetching-KHFEg_eS.cjs";
|
|
2
2
|
export { IsFetching };
|
package/dist/IsFetching.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IsFetching } from "./IsFetching-
|
|
1
|
+
import { t as IsFetching } from "./IsFetching-BLwpeMoH.mjs";
|
|
2
2
|
export { IsFetching };
|
package/dist/IsFetching.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mutation-
|
|
1
|
+
{"version":3,"file":"Mutation-CGpbCg54.d.mts","names":[],"sources":["../src/Mutation.tsx"],"sourcesContent":[],"mappings":";;;;;iBAKgB;;;GAGb,mBAAmB,OAAO,QAAQ,YAAY;6BACpB,kBAAkB,OAAO,QAAQ,YAAY,cAAc;IACvF,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _objectWithoutProperties } from "./objectWithoutProperties-
|
|
1
|
+
import { t as _objectWithoutProperties } from "./objectWithoutProperties-MpQDFxYs.mjs";
|
|
2
2
|
import { useMutation } from "@tanstack/react-query";
|
|
3
3
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -11,4 +11,4 @@ function Mutation(_ref) {
|
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Mutation as t };
|
|
14
|
-
//# sourceMappingURL=Mutation-
|
|
14
|
+
//# sourceMappingURL=Mutation-Dh5n54P8.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mutation-
|
|
1
|
+
{"version":3,"file":"Mutation-Dh5n54P8.mjs","names":[],"sources":["../src/Mutation.tsx"],"sourcesContent":["'use client'\n\nimport { type UseMutationOptions, type UseMutationResult, useMutation } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\nexport function Mutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>({\n children,\n ...options\n}: UseMutationOptions<TData, TError, TVariables, TContext> & {\n children: (mutationResult: UseMutationResult<TData, TError, TVariables, TContext>) => ReactNode\n}) {\n return <>{children(useMutation(options))}</>\n}\n"],"mappings":";;;;;mBAME;AADF,SAAgB,SAAmF,MAKhG;KALgG,EACjG;AAKA,QAAO,0CAAG,SAAS,sDAAoB,CAAC,GAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mutation-
|
|
1
|
+
{"version":3,"file":"Mutation-Dt5kUsd8.d.cts","names":[],"sources":["../src/Mutation.tsx"],"sourcesContent":[],"mappings":";;;;;iBAKgB;;;GAGb,mBAAmB,OAAO,QAAQ,YAAY;6BACpB,kBAAkB,OAAO,QAAQ,YAAY,cAAc;IACvF,kBAAA,CAAA,GAAA,CAAA"}
|
package/dist/Mutation.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Mutation } from "./Mutation-
|
|
1
|
+
import { t as Mutation } from "./Mutation-Dt5kUsd8.cjs";
|
|
2
2
|
export { Mutation };
|
package/dist/Mutation.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Mutation } from "./Mutation-
|
|
1
|
+
import { t as Mutation } from "./Mutation-CGpbCg54.mjs";
|
|
2
2
|
export { Mutation };
|
package/dist/Mutation.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
1
2
|
import { FetchInfiniteQueryOptions, QueryKey } from "@tanstack/react-query";
|
|
2
|
-
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/PrefetchInfiniteQuery.d.ts
|
|
5
5
|
|
|
@@ -11,7 +11,7 @@ import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
|
11
11
|
* <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
declare function PrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>):
|
|
14
|
+
declare function PrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>): react_jsx_runtime0.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { PrefetchInfiniteQuery as t };
|
|
17
|
-
//# sourceMappingURL=PrefetchInfiniteQuery-
|
|
17
|
+
//# sourceMappingURL=PrefetchInfiniteQuery-BewcG5rR.d.cts.map
|
package/dist/{PrefetchInfiniteQuery-B9hGVsbw.d.cts.map → PrefetchInfiniteQuery-BewcG5rR.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrefetchInfiniteQuery-
|
|
1
|
+
{"version":3,"file":"PrefetchInfiniteQuery-BewcG5rR.d.cts","names":[],"sources":["../src/PrefetchInfiniteQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAaA;;;;;AAKmD,iBALnC,qBAKmC,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAFzC,YAEyC,EAAA,kBAD/B,QAC+B,GADpB,QACoB,CAAA,CAAA,OAAA,EAAxC,yBAAwC,CAAd,YAAc,EAAA,MAAA,EAAQ,KAAR,EAAe,SAAf,CAAA,CAAA,EAAyB,kBAAA,CAAA,GAAA,CAAA,OAAzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
1
|
import { FetchInfiniteQueryOptions, QueryKey } from "@tanstack/react-query";
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/PrefetchInfiniteQuery.d.ts
|
|
5
5
|
|
|
@@ -11,7 +11,7 @@ import { FetchInfiniteQueryOptions, QueryKey } from "@tanstack/react-query";
|
|
|
11
11
|
* <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
declare function PrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>):
|
|
14
|
+
declare function PrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>): react_jsx_runtime8.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { PrefetchInfiniteQuery as t };
|
|
17
|
-
//# sourceMappingURL=PrefetchInfiniteQuery-
|
|
17
|
+
//# sourceMappingURL=PrefetchInfiniteQuery-Dkd2ChpC.d.mts.map
|
package/dist/{PrefetchInfiniteQuery-DtZ7itiY.d.mts.map → PrefetchInfiniteQuery-Dkd2ChpC.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrefetchInfiniteQuery-
|
|
1
|
+
{"version":3,"file":"PrefetchInfiniteQuery-Dkd2ChpC.d.mts","names":[],"sources":["../src/PrefetchInfiniteQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAaA;;;;;AAKmD,iBALnC,qBAKmC,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAFzC,YAEyC,EAAA,kBAD/B,QAC+B,GADpB,QACoB,CAAA,CAAA,OAAA,EAAxC,yBAAwC,CAAd,YAAc,EAAA,MAAA,EAAQ,KAAR,EAAe,SAAf,CAAA,CAAA,EAAyB,kBAAA,CAAA,GAAA,CAAA,OAAzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as usePrefetchInfiniteQuery } from "./usePrefetchInfiniteQuery-
|
|
1
|
+
import { t as usePrefetchInfiniteQuery } from "./usePrefetchInfiniteQuery-CQSN-P9m.mjs";
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/PrefetchInfiniteQuery.tsx
|
|
@@ -17,4 +17,4 @@ function PrefetchInfiniteQuery(options) {
|
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
export { PrefetchInfiniteQuery as t };
|
|
20
|
-
//# sourceMappingURL=PrefetchInfiniteQuery-
|
|
20
|
+
//# sourceMappingURL=PrefetchInfiniteQuery-RS3Qz-7B.mjs.map
|
package/dist/{PrefetchInfiniteQuery-C0eOVFlg.mjs.map → PrefetchInfiniteQuery-RS3Qz-7B.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrefetchInfiniteQuery-
|
|
1
|
+
{"version":3,"file":"PrefetchInfiniteQuery-RS3Qz-7B.mjs","names":[],"sources":["../src/PrefetchInfiniteQuery.tsx"],"sourcesContent":["'use client'\n\nimport { type FetchInfiniteQueryOptions, type QueryKey } from '@tanstack/react-query'\nimport { usePrefetchInfiniteQuery } from './usePrefetchInfiniteQuery'\n\n/**\n * A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.\n * @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}\n * @example\n * ```tsx\n * <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />\n * ```\n */\nexport function PrefetchInfiniteQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>) {\n usePrefetchInfiniteQuery(options)\n return <></>\n}\n"],"mappings":";;;;;;;;;;;;AAaA,SAAgB,sBAKd,SAA4E;AAC5E,0BAAyB,QAAQ;AACjC,QAAO,iCAAK"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-
|
|
1
|
+
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-BewcG5rR.cjs";
|
|
2
2
|
export { PrefetchInfiniteQuery };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-
|
|
1
|
+
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-Dkd2ChpC.mjs";
|
|
2
2
|
export { PrefetchInfiniteQuery };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import "./usePrefetchInfiniteQuery-
|
|
5
|
-
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-
|
|
4
|
+
import "./usePrefetchInfiniteQuery-CQSN-P9m.mjs";
|
|
5
|
+
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-RS3Qz-7B.mjs";
|
|
6
6
|
|
|
7
7
|
export { PrefetchInfiniteQuery };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
1
2
|
import { FetchQueryOptions, QueryKey } from "@tanstack/react-query";
|
|
2
|
-
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/PrefetchQuery.d.ts
|
|
5
5
|
|
|
@@ -11,7 +11,7 @@ import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
|
11
11
|
* <PrefetchQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
declare function PrefetchQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>):
|
|
14
|
+
declare function PrefetchQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>): react_jsx_runtime6.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { PrefetchQuery as t };
|
|
17
|
-
//# sourceMappingURL=PrefetchQuery-
|
|
17
|
+
//# sourceMappingURL=PrefetchQuery-BfNg0tKA.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrefetchQuery-
|
|
1
|
+
{"version":3,"file":"PrefetchQuery-BfNg0tKA.d.cts","names":[],"sources":["../src/PrefetchQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAaA;;;;;AAK2C,iBAL3B,aAK2B,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAFjC,YAEiC,EAAA,kBADvB,QACuB,GADZ,QACY,CAAA,CAAA,OAAA,EAAhC,iBAAgC,CAAd,YAAc,EAAA,MAAA,EAAQ,KAAR,EAAe,SAAf,CAAA,CAAA,EAAyB,kBAAA,CAAA,GAAA,CAAA,OAAzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { FetchQueryOptions, QueryKey } from "@tanstack/react-query";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/PrefetchQuery.d.ts
|
|
5
5
|
|
|
@@ -14,4 +14,4 @@ import { FetchQueryOptions, QueryKey } from "@tanstack/react-query";
|
|
|
14
14
|
declare function PrefetchQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>): react_jsx_runtime0.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { PrefetchQuery as t };
|
|
17
|
-
//# sourceMappingURL=PrefetchQuery-
|
|
17
|
+
//# sourceMappingURL=PrefetchQuery-CoxqaDzh.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrefetchQuery-
|
|
1
|
+
{"version":3,"file":"PrefetchQuery-CoxqaDzh.d.mts","names":[],"sources":["../src/PrefetchQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAaA;;;;;AAK2C,iBAL3B,aAK2B,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAFjC,YAEiC,EAAA,kBADvB,QACuB,GADZ,QACY,CAAA,CAAA,OAAA,EAAhC,iBAAgC,CAAd,YAAc,EAAA,MAAA,EAAQ,KAAR,EAAe,SAAf,CAAA,CAAA,EAAyB,kBAAA,CAAA,GAAA,CAAA,OAAzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as usePrefetchQuery } from "./usePrefetchQuery-
|
|
1
|
+
import { t as usePrefetchQuery } from "./usePrefetchQuery-CtrJciA6.mjs";
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/PrefetchQuery.tsx
|
|
@@ -17,4 +17,4 @@ function PrefetchQuery(options) {
|
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
export { PrefetchQuery as t };
|
|
20
|
-
//# sourceMappingURL=PrefetchQuery-
|
|
20
|
+
//# sourceMappingURL=PrefetchQuery-uh4idoXK.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrefetchQuery-
|
|
1
|
+
{"version":3,"file":"PrefetchQuery-uh4idoXK.mjs","names":[],"sources":["../src/PrefetchQuery.tsx"],"sourcesContent":["'use client'\n\nimport { type FetchQueryOptions, type QueryKey } from '@tanstack/react-query'\nimport { usePrefetchQuery } from './usePrefetchQuery'\n\n/**\n * A component that allows you to use usePrefetchQuery in JSX, avoiding the limitations of React hooks.\n * @see {@link https://suspensive.org/docs/react-query/PrefetchQuery Suspensive Docs}\n * @example\n * ```tsx\n * <PrefetchQuery queryKey={['queryKey']} queryFn={queryFn} />\n * ```\n */\nexport function PrefetchQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(options: FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>) {\n usePrefetchQuery(options)\n return <></>\n}\n"],"mappings":";;;;;;;;;;;;AAaA,SAAgB,cAKd,SAAoE;AACpE,kBAAiB,QAAQ;AACzB,QAAO,iCAAK"}
|
package/dist/PrefetchQuery.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PrefetchQuery } from "./PrefetchQuery-
|
|
1
|
+
import { t as PrefetchQuery } from "./PrefetchQuery-BfNg0tKA.cjs";
|
|
2
2
|
export { PrefetchQuery };
|
package/dist/PrefetchQuery.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PrefetchQuery } from "./PrefetchQuery-
|
|
1
|
+
import { t as PrefetchQuery } from "./PrefetchQuery-CoxqaDzh.mjs";
|
|
2
2
|
export { PrefetchQuery };
|
package/dist/PrefetchQuery.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import "./usePrefetchQuery-
|
|
5
|
-
import { t as PrefetchQuery } from "./PrefetchQuery-
|
|
4
|
+
import "./usePrefetchQuery-CtrJciA6.mjs";
|
|
5
|
+
import { t as PrefetchQuery } from "./PrefetchQuery-uh4idoXK.mjs";
|
|
6
6
|
|
|
7
7
|
export { PrefetchQuery };
|
|
@@ -95,4 +95,4 @@ declare function QueriesHydration({
|
|
|
95
95
|
} & OmitKeyof<HydrateProps, 'state'>): Promise<react_jsx_runtime1.JSX.Element>;
|
|
96
96
|
//#endregion
|
|
97
97
|
export { QueriesHydration as t };
|
|
98
|
-
//# sourceMappingURL=QueriesHydration-
|
|
98
|
+
//# sourceMappingURL=QueriesHydration-BCGsQdvj.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueriesHydration-
|
|
1
|
+
{"version":3,"file":"QueriesHydration-BCGsQdvj.d.cts","names":[],"sources":["../src/QueriesHydration.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AA4EA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAsB,gBAAA;;;;;;;;;;gBAUN;;;;WAIL,aAAa;;;;;;;;cAUN;;IAEd,UAAU,yBAAsB,QAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HydrateProps, OmitKeyof, QueryClient, QueryOptions, WithRequired } from "@tanstack/react-query";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/QueriesHydration.d.ts
|
|
@@ -92,7 +92,7 @@ declare function QueriesHydration({
|
|
|
92
92
|
skipSsrOnError?: boolean | {
|
|
93
93
|
fallback: ReactNode;
|
|
94
94
|
};
|
|
95
|
-
} & OmitKeyof<HydrateProps, 'state'>): Promise<
|
|
95
|
+
} & OmitKeyof<HydrateProps, 'state'>): Promise<react_jsx_runtime3.JSX.Element>;
|
|
96
96
|
//#endregion
|
|
97
97
|
export { QueriesHydration as t };
|
|
98
|
-
//# sourceMappingURL=QueriesHydration-
|
|
98
|
+
//# sourceMappingURL=QueriesHydration-Bna6eo52.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueriesHydration-
|
|
1
|
+
{"version":3,"file":"QueriesHydration-Bna6eo52.d.mts","names":[],"sources":["../src/QueriesHydration.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AA4EA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAsB,gBAAA;;;;;;;;;;gBAUN;;;;WAIL,aAAa;;;;;;;;cAUN;;IAEd,UAAU,yBAAsB,QAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,74 +1,9 @@
|
|
|
1
1
|
const require_objectWithoutProperties = require('./objectWithoutProperties-DjGVB1dZ.cjs');
|
|
2
2
|
const require_ClientOnly = require('./ClientOnly-Dvf8t__-.cjs');
|
|
3
|
+
const require_objectSpread2 = require('./objectSpread2-CGqp5tYf.cjs');
|
|
3
4
|
let __tanstack_react_query = require("@tanstack/react-query");
|
|
4
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
6
|
|
|
6
|
-
//#region \0@oxc-project+runtime@0.97.0/helpers/typeof.js
|
|
7
|
-
function _typeof(o) {
|
|
8
|
-
"@babel/helpers - typeof";
|
|
9
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
10
|
-
return typeof o$1;
|
|
11
|
-
} : function(o$1) {
|
|
12
|
-
return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
|
|
13
|
-
}, _typeof(o);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region \0@oxc-project+runtime@0.97.0/helpers/toPrimitive.js
|
|
18
|
-
function toPrimitive(t, r) {
|
|
19
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
20
|
-
var e = t[Symbol.toPrimitive];
|
|
21
|
-
if (void 0 !== e) {
|
|
22
|
-
var i = e.call(t, r || "default");
|
|
23
|
-
if ("object" != _typeof(i)) return i;
|
|
24
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
25
|
-
}
|
|
26
|
-
return ("string" === r ? String : Number)(t);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region \0@oxc-project+runtime@0.97.0/helpers/toPropertyKey.js
|
|
31
|
-
function toPropertyKey(t) {
|
|
32
|
-
var i = toPrimitive(t, "string");
|
|
33
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region \0@oxc-project+runtime@0.97.0/helpers/defineProperty.js
|
|
38
|
-
function _defineProperty(e, r, t) {
|
|
39
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
40
|
-
value: t,
|
|
41
|
-
enumerable: !0,
|
|
42
|
-
configurable: !0,
|
|
43
|
-
writable: !0
|
|
44
|
-
}) : e[r] = t, e;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region \0@oxc-project+runtime@0.97.0/helpers/objectSpread2.js
|
|
49
|
-
function ownKeys(e, r) {
|
|
50
|
-
var t = Object.keys(e);
|
|
51
|
-
if (Object.getOwnPropertySymbols) {
|
|
52
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
53
|
-
r && (o = o.filter(function(r$1) {
|
|
54
|
-
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
55
|
-
})), t.push.apply(t, o);
|
|
56
|
-
}
|
|
57
|
-
return t;
|
|
58
|
-
}
|
|
59
|
-
function _objectSpread2(e) {
|
|
60
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
61
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
62
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
|
|
63
|
-
_defineProperty(e, r$1, t[r$1]);
|
|
64
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
65
|
-
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
return e;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
//#endregion
|
|
72
7
|
//#region \0@oxc-project+runtime@0.97.0/helpers/asyncToGenerator.js
|
|
73
8
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
74
9
|
try {
|
|
@@ -181,7 +116,7 @@ function _QueriesHydration() {
|
|
|
181
116
|
children
|
|
182
117
|
});
|
|
183
118
|
}
|
|
184
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tanstack_react_query.Hydrate, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
119
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tanstack_react_query.Hydrate, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, {
|
|
185
120
|
state: (0, __tanstack_react_query.dehydrate)(queryClient),
|
|
186
121
|
children
|
|
187
122
|
}));
|
|
@@ -196,4 +131,4 @@ Object.defineProperty(exports, 'QueriesHydration', {
|
|
|
196
131
|
return QueriesHydration;
|
|
197
132
|
}
|
|
198
133
|
});
|
|
199
|
-
//# sourceMappingURL=QueriesHydration-
|
|
134
|
+
//# sourceMappingURL=QueriesHydration-CQ5Lct-O.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueriesHydration-
|
|
1
|
+
{"version":3,"file":"QueriesHydration-CQ5Lct-O.cjs","names":["QueryClient","ClientOnly","Hydrate"],"sources":["../src/QueriesHydration.tsx"],"sourcesContent":["import {\n Hydrate,\n type HydrateProps,\n type OmitKeyof,\n QueryClient,\n type QueryOptions,\n type WithRequired,\n dehydrate,\n} from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\nimport { ClientOnly } from './components/ClientOnly'\n\n/**\n * A server component that fetches multiple queries on the server and hydrates them to the client.\n *\n * @experimental This component is experimental and may be changed or removed in the future.\n *\n * @description\n * QueriesHydration is designed for React Server Components (RSC).\n * It pre-fetches multiple queries on the server side and automatically hydrates\n * the data to the client, enabling seamless data synchronization between server and client.\n *\n * When errors occur during server-side fetching, the component gracefully falls back\n * to client-side rendering, ensuring your application remains resilient.\n *\n * @example\n * ```tsx\n * // app/page.tsx (Server Component)\n * import { Suspense } from 'react'\n * import { QueriesHydration } from '@suspensive/react-query'\n * import { queryOptions } from '@tanstack/react-query'\n *\n * const userQueryOptions = (userId: string) => queryOptions({\n * queryKey: ['user', userId],\n * queryFn: () => fetchUser(userId)\n * })\n *\n * const postsQueryOptions = () => queryOptions({\n * queryKey: ['posts'],\n * queryFn: () => fetchPosts()\n * })\n *\n * export default function Page({ userId }: { userId: string }) {\n * return (\n * <>\n * <Suspense fallback={<div>Loading user...</div>}>\n * <QueriesHydration queries={[userQueryOptions(userId)]}>\n * <UserProfile />\n * </QueriesHydration>\n * </Suspense>\n *\n * <Suspense fallback={<div>Loading posts...</div>}>\n * <QueriesHydration queries={[postsQueryOptions()]}>\n * <PostsList />\n * </QueriesHydration>\n * </Suspense>\n * </>\n * )\n * }\n * ```\n *\n * @example\n * ```tsx\n * // With custom error fallback\n * <Suspense fallback={<div>Loading user...</div>}>\n * <QueriesHydration\n * queries={[userQueryOptions(userId)]}\n * skipSsrOnError={{ fallback: <div>Fetching on client...</div> }}\n * >\n * <UserProfile />\n * </QueriesHydration>\n * </Suspense>\n * ```\n *\n * @see {@link https://suspensive.org/docs/react-query/QueriesHydration Documentation}\n */\nexport async function QueriesHydration({\n queries,\n children,\n queryClient = new QueryClient(),\n skipSsrOnError = true,\n ...props\n}: {\n /**\n * The QueryClient instance to use for fetching queries.\n */\n queryClient?: QueryClient\n /**\n * An array of query options to be fetched on the server. Each query must include a `queryKey`.\n */\n queries: WithRequired<QueryOptions<any, any, any, any>, 'queryKey'>[]\n /**\n * Controls error handling behavior:\n * - `true` (default): Skips SSR and falls back to client-side rendering when server fetch fails\n * - `false`: Proceeds with SSR without hydration (retry fetching on client component server rendering)\n * - `{ fallback: ReactNode }`: Skips SSR with custom fallback UI during client-side rendering\n */\n skipSsrOnError?:\n | boolean\n | {\n fallback: ReactNode\n }\n} & OmitKeyof<HydrateProps, 'state'>) {\n try {\n await Promise.all(queries.map((query) => queryClient.ensureQueryData(query)))\n } catch {\n if (skipSsrOnError) {\n return (\n <ClientOnly fallback={skipSsrOnError === true ? undefined : skipSsrOnError.fallback}>{children}</ClientOnly>\n )\n }\n }\n return (\n <Hydrate {...props} state={dehydrate(queryClient)}>\n {children}\n </Hydrate>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EE;CACA;CACA;CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAJF,SAAsB,iBAAiB;;;;wDA0BD;MA1BC,EACrC,SACA,UACA,cAAc,IAAIA,oCAAa,EAC/B,iBAAiB,eACd;AAsBH,MAAI;AACF,SAAM,QAAQ,IAAI,QAAQ,KAAK,UAAU,YAAY,gBAAgB,MAAM,CAAC,CAAC;oBACvE;AACN,OAAI,eACF,QACE,2CAACC;IAAW,UAAU,mBAAmB,OAAO,SAAY,eAAe;IAAW;KAAsB;;AAIlH,SACE,2CAACC,8GAAY;GAAO,6CAAiB,YAAY;GAC9C;KACO"}
|
|
@@ -1,74 +1,9 @@
|
|
|
1
|
-
import { t as _objectWithoutProperties } from "./objectWithoutProperties-
|
|
2
|
-
import { t as ClientOnly } from "./ClientOnly-
|
|
1
|
+
import { t as _objectWithoutProperties } from "./objectWithoutProperties-MpQDFxYs.mjs";
|
|
2
|
+
import { t as ClientOnly } from "./ClientOnly-BdmzVYnI.mjs";
|
|
3
|
+
import { t as _objectSpread2 } from "./objectSpread2-BHq2muQo.mjs";
|
|
3
4
|
import { Hydrate, QueryClient, dehydrate } from "@tanstack/react-query";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
|
|
6
|
-
//#region \0@oxc-project+runtime@0.97.0/helpers/typeof.js
|
|
7
|
-
function _typeof(o) {
|
|
8
|
-
"@babel/helpers - typeof";
|
|
9
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
10
|
-
return typeof o$1;
|
|
11
|
-
} : function(o$1) {
|
|
12
|
-
return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
|
|
13
|
-
}, _typeof(o);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region \0@oxc-project+runtime@0.97.0/helpers/toPrimitive.js
|
|
18
|
-
function toPrimitive(t, r) {
|
|
19
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
20
|
-
var e = t[Symbol.toPrimitive];
|
|
21
|
-
if (void 0 !== e) {
|
|
22
|
-
var i = e.call(t, r || "default");
|
|
23
|
-
if ("object" != _typeof(i)) return i;
|
|
24
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
25
|
-
}
|
|
26
|
-
return ("string" === r ? String : Number)(t);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region \0@oxc-project+runtime@0.97.0/helpers/toPropertyKey.js
|
|
31
|
-
function toPropertyKey(t) {
|
|
32
|
-
var i = toPrimitive(t, "string");
|
|
33
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region \0@oxc-project+runtime@0.97.0/helpers/defineProperty.js
|
|
38
|
-
function _defineProperty(e, r, t) {
|
|
39
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
40
|
-
value: t,
|
|
41
|
-
enumerable: !0,
|
|
42
|
-
configurable: !0,
|
|
43
|
-
writable: !0
|
|
44
|
-
}) : e[r] = t, e;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region \0@oxc-project+runtime@0.97.0/helpers/objectSpread2.js
|
|
49
|
-
function ownKeys(e, r) {
|
|
50
|
-
var t = Object.keys(e);
|
|
51
|
-
if (Object.getOwnPropertySymbols) {
|
|
52
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
53
|
-
r && (o = o.filter(function(r$1) {
|
|
54
|
-
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
55
|
-
})), t.push.apply(t, o);
|
|
56
|
-
}
|
|
57
|
-
return t;
|
|
58
|
-
}
|
|
59
|
-
function _objectSpread2(e) {
|
|
60
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
61
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
62
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
|
|
63
|
-
_defineProperty(e, r$1, t[r$1]);
|
|
64
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
65
|
-
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
return e;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
//#endregion
|
|
72
7
|
//#region \0@oxc-project+runtime@0.97.0/helpers/asyncToGenerator.js
|
|
73
8
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
74
9
|
try {
|
|
@@ -191,4 +126,4 @@ function _QueriesHydration() {
|
|
|
191
126
|
|
|
192
127
|
//#endregion
|
|
193
128
|
export { QueriesHydration as t };
|
|
194
|
-
//# sourceMappingURL=QueriesHydration-
|
|
129
|
+
//# sourceMappingURL=QueriesHydration-D-iXKM2g.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueriesHydration-
|
|
1
|
+
{"version":3,"file":"QueriesHydration-D-iXKM2g.mjs","names":[],"sources":["../src/QueriesHydration.tsx"],"sourcesContent":["import {\n Hydrate,\n type HydrateProps,\n type OmitKeyof,\n QueryClient,\n type QueryOptions,\n type WithRequired,\n dehydrate,\n} from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\nimport { ClientOnly } from './components/ClientOnly'\n\n/**\n * A server component that fetches multiple queries on the server and hydrates them to the client.\n *\n * @experimental This component is experimental and may be changed or removed in the future.\n *\n * @description\n * QueriesHydration is designed for React Server Components (RSC).\n * It pre-fetches multiple queries on the server side and automatically hydrates\n * the data to the client, enabling seamless data synchronization between server and client.\n *\n * When errors occur during server-side fetching, the component gracefully falls back\n * to client-side rendering, ensuring your application remains resilient.\n *\n * @example\n * ```tsx\n * // app/page.tsx (Server Component)\n * import { Suspense } from 'react'\n * import { QueriesHydration } from '@suspensive/react-query'\n * import { queryOptions } from '@tanstack/react-query'\n *\n * const userQueryOptions = (userId: string) => queryOptions({\n * queryKey: ['user', userId],\n * queryFn: () => fetchUser(userId)\n * })\n *\n * const postsQueryOptions = () => queryOptions({\n * queryKey: ['posts'],\n * queryFn: () => fetchPosts()\n * })\n *\n * export default function Page({ userId }: { userId: string }) {\n * return (\n * <>\n * <Suspense fallback={<div>Loading user...</div>}>\n * <QueriesHydration queries={[userQueryOptions(userId)]}>\n * <UserProfile />\n * </QueriesHydration>\n * </Suspense>\n *\n * <Suspense fallback={<div>Loading posts...</div>}>\n * <QueriesHydration queries={[postsQueryOptions()]}>\n * <PostsList />\n * </QueriesHydration>\n * </Suspense>\n * </>\n * )\n * }\n * ```\n *\n * @example\n * ```tsx\n * // With custom error fallback\n * <Suspense fallback={<div>Loading user...</div>}>\n * <QueriesHydration\n * queries={[userQueryOptions(userId)]}\n * skipSsrOnError={{ fallback: <div>Fetching on client...</div> }}\n * >\n * <UserProfile />\n * </QueriesHydration>\n * </Suspense>\n * ```\n *\n * @see {@link https://suspensive.org/docs/react-query/QueriesHydration Documentation}\n */\nexport async function QueriesHydration({\n queries,\n children,\n queryClient = new QueryClient(),\n skipSsrOnError = true,\n ...props\n}: {\n /**\n * The QueryClient instance to use for fetching queries.\n */\n queryClient?: QueryClient\n /**\n * An array of query options to be fetched on the server. Each query must include a `queryKey`.\n */\n queries: WithRequired<QueryOptions<any, any, any, any>, 'queryKey'>[]\n /**\n * Controls error handling behavior:\n * - `true` (default): Skips SSR and falls back to client-side rendering when server fetch fails\n * - `false`: Proceeds with SSR without hydration (retry fetching on client component server rendering)\n * - `{ fallback: ReactNode }`: Skips SSR with custom fallback UI during client-side rendering\n */\n skipSsrOnError?:\n | boolean\n | {\n fallback: ReactNode\n }\n} & OmitKeyof<HydrateProps, 'state'>) {\n try {\n await Promise.all(queries.map((query) => queryClient.ensureQueryData(query)))\n } catch {\n if (skipSsrOnError) {\n return (\n <ClientOnly fallback={skipSsrOnError === true ? undefined : skipSsrOnError.fallback}>{children}</ClientOnly>\n )\n }\n }\n return (\n <Hydrate {...props} state={dehydrate(queryClient)}>\n {children}\n </Hydrate>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EE;CACA;CACA;CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAJF,SAAsB,iBAAiB;;;;wDA0BD;MA1BC,EACrC,SACA,UACA,cAAc,IAAI,aAAa,EAC/B,iBAAiB,eACd;AAsBH,MAAI;AACF,SAAM,QAAQ,IAAI,QAAQ,KAAK,UAAU,YAAY,gBAAgB,MAAM,CAAC,CAAC;oBACvE;AACN,OAAI,eACF,QACE,oBAAC;IAAW,UAAU,mBAAmB,OAAO,SAAY,eAAe;IAAW;KAAsB;;AAIlH,SACE,oBAAC,2CAAY;GAAO,OAAO,UAAU,YAAY;GAC9C;KACO"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require('./objectWithoutProperties-DjGVB1dZ.cjs');
|
|
2
2
|
require('./ClientOnly-Dvf8t__-.cjs');
|
|
3
|
-
|
|
3
|
+
require('./objectSpread2-CGqp5tYf.cjs');
|
|
4
|
+
const require_QueriesHydration = require('./QueriesHydration-CQ5Lct-O.cjs');
|
|
4
5
|
|
|
5
6
|
exports.QueriesHydration = require_QueriesHydration.QueriesHydration;
|