Skip to content

Commit 0b75856

Browse files
committed
docs(preact-query/reference): switch to React reference reuse via 'ref:' like vue-query
1 parent 6423f9e commit 0b75856

86 files changed

Lines changed: 143 additions & 2391 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/config.json

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,89 +1402,85 @@
14021402
{
14031403
"label": "preact",
14041404
"children": [
1405-
{
1406-
"label": "Preact Reference",
1407-
"to": "framework/preact/reference/index"
1408-
},
14091405
{
14101406
"label": "useQuery",
1411-
"to": "framework/preact/reference/functions/useQuery"
1407+
"to": "framework/preact/reference/useQuery"
14121408
},
14131409
{
14141410
"label": "useQueries",
1415-
"to": "framework/preact/reference/functions/useQueries"
1411+
"to": "framework/preact/reference/useQueries"
14161412
},
14171413
{
14181414
"label": "useInfiniteQuery",
1419-
"to": "framework/preact/reference/functions/useInfiniteQuery"
1415+
"to": "framework/preact/reference/useInfiniteQuery"
14201416
},
14211417
{
14221418
"label": "useMutation",
1423-
"to": "framework/preact/reference/functions/useMutation"
1419+
"to": "framework/preact/reference/useMutation"
14241420
},
14251421
{
14261422
"label": "useIsFetching",
1427-
"to": "framework/preact/reference/functions/useIsFetching"
1423+
"to": "framework/preact/reference/useIsFetching"
14281424
},
14291425
{
14301426
"label": "useIsMutating",
1431-
"to": "framework/preact/reference/functions/useIsMutating"
1427+
"to": "framework/preact/reference/useIsMutating"
14321428
},
14331429
{
14341430
"label": "useMutationState",
1435-
"to": "framework/preact/reference/functions/useMutationState"
1431+
"to": "framework/preact/reference/useMutationState"
14361432
},
14371433
{
14381434
"label": "useSuspenseQuery",
1439-
"to": "framework/preact/reference/functions/useSuspenseQuery"
1435+
"to": "framework/preact/reference/useSuspenseQuery"
14401436
},
14411437
{
14421438
"label": "useSuspenseInfiniteQuery",
1443-
"to": "framework/preact/reference/functions/useSuspenseInfiniteQuery"
1439+
"to": "framework/preact/reference/useSuspenseInfiniteQuery"
14441440
},
14451441
{
14461442
"label": "useSuspenseQueries",
1447-
"to": "framework/preact/reference/functions/useSuspenseQueries"
1443+
"to": "framework/preact/reference/useSuspenseQueries"
14481444
},
14491445
{
14501446
"label": "QueryClientProvider",
1451-
"to": "framework/preact/reference/functions/QueryClientProvider"
1447+
"to": "framework/preact/reference/QueryClientProvider"
14521448
},
14531449
{
14541450
"label": "useQueryClient",
1455-
"to": "framework/preact/reference/functions/useQueryClient"
1451+
"to": "framework/preact/reference/useQueryClient"
14561452
},
14571453
{
14581454
"label": "queryOptions",
1459-
"to": "framework/preact/reference/functions/queryOptions"
1455+
"to": "framework/preact/reference/queryOptions"
14601456
},
14611457
{
14621458
"label": "infiniteQueryOptions",
1463-
"to": "framework/preact/reference/functions/infiniteQueryOptions"
1459+
"to": "framework/preact/reference/infiniteQueryOptions"
14641460
},
14651461
{
14661462
"label": "mutationOptions",
1467-
"to": "framework/preact/reference/functions/mutationOptions"
1463+
"to": "framework/preact/reference/mutationOptions"
14681464
},
14691465
{
14701466
"label": "usePrefetchQuery",
1471-
"to": "framework/preact/reference/functions/usePrefetchQuery"
1467+
"to": "framework/preact/reference/usePrefetchQuery"
14721468
},
14731469
{
14741470
"label": "usePrefetchInfiniteQuery",
1475-
"to": "framework/preact/reference/functions/usePrefetchInfiniteQuery"
1471+
"to": "framework/preact/reference/usePrefetchInfiniteQuery"
14761472
},
14771473
{
14781474
"label": "QueryErrorResetBoundary",
1479-
"to": "framework/preact/reference/functions/QueryErrorResetBoundary"
1475+
"to": "framework/preact/reference/QueryErrorResetBoundary"
14801476
},
14811477
{
14821478
"label": "useQueryErrorResetBoundary",
1483-
"to": "framework/preact/reference/functions/useQueryErrorResetBoundary"
1479+
"to": "framework/preact/reference/useQueryErrorResetBoundary"
14841480
},
14851481
{
14861482
"label": "hydration",
1487-
"to": "framework/preact/reference/functions/HydrationBoundary"
1483+
"to": "framework/preact/reference/hydration"
14881484
}
14891485
]
14901486
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
id: QueryClientProvider
3+
title: QueryClientProvider
4+
ref: docs/framework/react/reference/QueryClientProvider.md
5+
replace: { '@tanstack/react-query': '@tanstack/preact-query' }
6+
---
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
id: QueryErrorResetBoundary
3+
title: QueryErrorResetBoundary
4+
ref: docs/framework/react/reference/QueryErrorResetBoundary.md
5+
replace: { '@tanstack/react-query': '@tanstack/preact-query' }
6+
---

docs/framework/preact/reference/functions/HydrationBoundary.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/framework/preact/reference/functions/QueryClientProvider.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/framework/preact/reference/functions/QueryErrorResetBoundary.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/framework/preact/reference/functions/infiniteQueryOptions.md

Lines changed: 0 additions & 124 deletions
This file was deleted.

docs/framework/preact/reference/functions/mutationOptions.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)