Replies: 1 comment 2 replies
-
with the shown code, you will only ever fetch data once and never re-validate, because that's what The way I use it is with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've set up a component loader with react-query (as shown in the documentation), but I "forgot" to change the component itself, and I kept it with
useLoaderData()
.To my surprise, it worked.
posts
contained the output I expected.If my loader returns more than 1 key (like a promise and a primitive), using
useSuspenseQuery
in the component seems limiting, as it is tightly bound to react-query.So, which should we use?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions