call specific route
hi
how I can call a specific route ? for example if I want to call secndoary router to get specific data imdietlly (once opening the page), which hook I should use ?
I tried useQuery hook but I get errors:
error:
4 Replies
Hi @Deleted User. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the refine documentation (https://refine.dev/docs) for more information on how to work with hooks and routes in refine.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------Overview | refine
What is refine?
<@1073419683014922323> kapa.ai is still learning and improving, please let us how it did by reacting below
vicious-gold•17mo ago
You can use both
useCustom
and useQuery
. However resource
and some other properties are not valid props for useQuery
and useCustom
.
Refer to the docs for more info: https://refine.dev/docs/api-reference/core/hooks/data/useCustom/useCustom | refine
useCustom is an extended version of TanStack Query's useQuery. It supports all the features of useQuery and adds some extra features.