Accessing Id from Show page without triggering request
I have a simple show page and want to use useCustom to make the request (complex url) rather than useShow. How can I just simply access the Id parameter from with the show page? If I use useShow it triggers the request automatically.
I'm calling the show page like this from useNavigation:
onRowClick={(row) => show("<resource>", row.id)}
4 Replies
Hey @jn ,
You can use
useResource
hook 🚀
https://refine.dev/docs/api-reference/core/hooks/resource/useResource/deep-jade•2y ago
D'oh! Thanks @Omer
initial-rose•2y ago
Thank you for this. Really help
You're welcome! 👊