R
Refine

ask-any-question

useForm

Mmetropolitan-bronze5/4/2023
I build a custom hook that generates the form my problem is if i created a new record , then i clicked the edit button the data will be loaded successfully but get back then clicked the edit button for the same record the data will not be loaded which mean all the inputs are empty i tried to console the getValues() function I see at the first time it loads the form then it bring the data from api but the second click will not fetch the data from the api that's my problem
Kkapa.ai5/4/2023
Hi @saji_nael. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Kkapa.ai5/4/2023
---------------------- Hmm, I don't know enough to give you a confident answer yet. However, I can provide you with some general guidance based on the information extracts. When using refine, it's important to ensure that you're passing the record id to the show function when clicking the Edit button. This is necessary for both "edit" and "clone" forms. You can find examples of this in the following extracts: - useDrawerForm with Ant Design (https://refine.dev/docs/api-reference/antd/hooks/form/useDrawerForm) - useDrawerForm with Mantine (https://refine.dev/docs/api-reference/mantine/hooks/form/useDrawerForm) - useModalForm with Ant Design (https://refine.dev/docs/api-reference/antd/hooks/form/useModalForm) - useModalForm with Mantine (https://refine.dev/docs/api-reference/mantine/hooks/form/useModalForm) If you're still having issues, I recommend reviewing the refine documentation (https://refine.dev/docs) for more information on how to properly set up your forms and handle data fetching. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
useDrawerForm | refine
useDrawerForm hook allows you to manage a form within a Drawer. It returns Ant Design and components props.
useDrawerForm | refine
useModalForm hook allows you to manage a form within a as well as a . It provides some useful methods to handle the form or form .
useModalForm | refine
useModalForm hook allows you to manage a form within a . It returns Ant Design and Modal components props.
useModalForm | refine
useModalForm hook also allows you to manage a form inside a modal component. It provides some useful methods to handle the form modal.
Overview | refine
What is refine?
Kkapa.ai5/4/2023
<@1000087684632547538> kapa.ai is still learning and improving, please let us how it did by reacting below
Pplain-purple5/4/2023
Hello @saji_nael, can you provide us a minimal reproducible stackblitz example so we can help?
Mmetropolitan-bronze5/5/2023
hi , I solved the issue thanks
Pplain-purple5/15/2023
Hello @saji_nael , I'm happy your issue is solved, if you can give some details for future reference, would be great!

Looking for more? Join the community!

R
Refine

ask-any-question

Join Server
Recommended Posts
Anyway to send my own alerts similar to when a new entry is created?I am hoping to subscribe to supabase events and display a notification on everypage when certain evedynamic i18n resource route prefix pathI already configured the router package (`react-router-dom` v6) to add a "lang" path prefix to my apReact-hook-form typesHi everyone hope you doing all well how to add types for the register functions for the @refinedev/rEslint integrationHi i have started Refine with vite ,so how to integrate eslintTranslate label for custom pagesI am using i18n for the changing the language. The example page labels all get translated but my cusmultiple different list/create/edit/view API endpoints for the same REST entityWhat is the recommended implementation way/hack strategy when I have resources that have several difNested rowKey in a tableMy rowkey value is nested. the example below doesn't work because rowKey don't accept this format. aunable to create refine-appon typing "npm create refine-app@latest" command in terminal getting error "✖ Could not found sourceFetch instead of axiosHeya, quick question - is it possible to provide the dataProvider with fetch instance rather than axExample for using API platform and interpreting its docs.jsonldAPI platform also provides a complete auto-generated documentation about the api, its endpoints, theDouble requests for listWhy there are doubled requests, after I I replaced the list view with the interferencer result?API Platform example, simple RESTIs there an example for using API platform and a simple REST dataProvider?Hello everyone I just want to understandHello everyone.. I just want to understand something but IDK if this is the right channel or should :disableTelemetry prop in the Refine node does not exist, how to disable telemetry?The manual states that one can disable telemetry by adding the prop disableTelemetry to the Refine n