Skip to content

useListData with Tanstack Query #6179

Discussion options

You must be logged in to vote

To set the default data, I think you want to pass initialData into useQuery.

And yes, initialItems is meant to be for initial render, so I'm not sure using these two hooks together will work if the data isn't ready.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@writes-of-spring
Comment options

@reidbarber
Comment options

Answer selected by writes-of-spring
@writes-of-spring
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants