useCustom hook info

How to fire useCustom hook programatically depending on some action?
kapa.ai
kapa.ai299d ago
Hi @dreamer9067. 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 useCustom documentation (https://refine.dev/docs/api-reference/core/hooks/data/useCustom/) for more details on how to use this hook. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai299d ago
<@560876002046377984> kapa.ai is still learning and improving, please let us how it did by reacting below
foreign-sapphire
foreign-sapphire299d ago
@kapa.ai can u give any example of a component with useCustom hook??
kapa.ai
kapa.ai299d ago
Let me check the knowledge base for you. One moment! :books: ---------------------- I'm sorry, but the provided extracts do not include a specific example of a component using the useCustom hook. However, the useCustom documentation (https://refine.dev/docs/api-reference/core/hooks/data/useCustom/) provides a detailed explanation of how to use this hook. It's used to send custom query requests and it uses the custom method as the query function from the dataProvider. Please note that useCustom should not be used when creating, updating, or deleting a resource. For these operations, you should use the useCreate (https://refine.dev/docs/api-reference/core/hooks/data/useCreate/), useUpdate (https://refine.dev/docs/api-reference/core/hooks/data/useUpdate/) or useDelete (https://refine.dev/docs/api-reference/core/hooks/data/useDelete/) hooks instead. If you need to customize the mutation request, you should use the useCustomMutation (https://refine.dev/docs/api-reference/core/hooks/data/useCustomMutation/) hook. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai299d ago
<@560876002046377984> kapa.ai is still learning and improving, please let us how it did by reacting below
More Posts
How to correctly display nested resource name in create hook notification ?I am getting a notification like "Successfully created orderes/1/items" when using the useCreateManyIssue while using edit and Use Form from antd , useone api is not getting automatically triggeredmy code for the edit part import React from 'react'; import { UserForm } from "pages/users/Form"; imHow do I implement Laravel Sanctum for authentication? Is it possible?How do I implement Laravel Sanctum for authentication? Is it possible?back button in list page beside titleI need a back button in list page beside titlepassword show/hideIam using Mui AuthPage for all auth routes. so in my updatePassword form, I want a password show/hidCalling Refetch() when Edit Call is Complete?Hi, I have a refetch() function and a useDrawerForm. Currently, I have refetch() called on submitPrepopulate form based on dropdown inside formHi! I have a form that includes a user select dropdown. Once the user is selected, another dropdowPassing Component PropsHow can I pass props to my modal created with useModal from my Mantine <Button> component?Custom Edit Button Behaviour?Hi! I have a button that, when clicked, should make an 'edit' call to the displayed resource, whichChange Themed layoutI have declared resource in App.tsx and got a sider with all the route and pages. Now on one page i prod buildhow to build prod ??icon libraryicon library support, such that i can specify icon in css file using content property @kapa.ai ??how are we retrieving data from strapi?Once a user is authenticated and they are now in the backend lets say they go to access posts, it auLess Support for isolation componentHow would i use less file in isolation for component in refine antd component?Less supportHow would i use less files for my components?useOne Query Parameter?Hi! I'd like to use a query parameter in my useOne call. I attempted to use meta, but the network r