[pull] main from TanStack:main - #212
Merged
Merged
Conversation
…actories (#11301) * docs(preact-query): wrap 'useIsFetching' example in a component * docs(preact-query): wrap 'useQueries' examples in components and add 'isError' handling * docs(preact-query): wrap 'useIsMutating' and 'useMutationState' examples in components * docs(preact-query): wrap 'queryOptions' examples in components * docs(preact-query): wrap 'infiniteQueryOptions' example in a component * fix(preact-query): correctly distinguish error state from loading in 'infiniteQueryOptions' example * fix(preact-query): correct mutation terminology and filter by success status in 'useMutationState' examples * docs(preact-query): destructure useInfiniteQuery result in 'infiniteQueryOptions' example * docs(preact-query): rename 'variables' to 'pendingVariables' in 'useMutationState' example * docs(preact-query): rename 'data' to 'savedPosts' in 'useMutationState' examples * docs(preact-query): rename 'results'/'result' to 'addResults'/'addResult' in 'useMutation' Promise.allSettled example * docs(preact-query): rename 'latest' to 'latestSavedPost' in 'useMutationState' example * docs(preact-query): render fetched pages and handle loading/error states in 'useInfiniteQuery' examples * docs(preact-query): render infinite query lists as '<ul>'/'<li>' instead of flat '<p>' tags * docs(preact-query): show hover-triggered prefetch instead of an unlocated 'Elsewhere' comment in 'queryOptions'/'infiniteQueryOptions' examples * docs(preact-query): move hover-prefetch examples from 'queryOptions'/'infiniteQueryOptions' to 'useQuery'/'useInfiniteQuery' * docs(preact-query): render list examples as '<ul>'/'<li>' and fix undefined refs across remaining hooks * docs(preact-query): name the prefetch id in 'queryOptions'/'infiniteQueryOptions' examples instead of an unexplained literal * docs(preact-query): add 'skipToken' examples for type-safe conditional disabling * docs(preact-query): use 'isLoading' with optional chaining in the infinite-query 'skipToken' examples * docs(preact-query): add missing 'isPending'/'isError' handling across 'queryOptions'/'useQuery'/'infiniteQueryOptions'/'useInfiniteQuery' examples * docs(preact-query): keep 'initialData' examples showing data alongside errors instead of hiding it * docs(preact-query): use scroll-triggered pagination in 'useInfiniteQuery' examples, add a 'fetchNextPage' trigger to 'infiniteQueryOptions' * docs(preact-query): guard scroll-triggered 'fetchNextPage' with 'isFetching', move cross-reference out of '@example' * docs(preact-query): move duplicated usage examples from 'queryOptions'/'infiniteQueryOptions' into their hooks * docs(preact-query): remove duplicated basic-mutation example from 'mutationOptions', trim boilerplate '@remarks' * docs(preact-query): add 'combine' example to 'useSuspenseQueries', link 'useSuspenseInfiniteQuery' to 'useInfiniteQuery' and document its waterfall/refetch risks * docs(preact-query): drop irrelevant 'useSuspenseQueries' reference from 'useSuspenseInfiniteQuery' waterfall remark * docs(preact-query): strengthen 'useMutation''s '@see' pointer to 'mutationOptions' with its 'mutationKey' lookup benefit * docs(preact-query): add blank lines around 'isPending'/'isError' guards for consistency with other examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )