how to handle 404 error in errorNotification?

Hi guys! I've got kind of problem then i use hook useForm and get initial value from backend - it might be possible then user with this id is not available. I try to handle errors using errorNotification method in useForm, but very strange that i cant handle 404 error using the same structure as then i did it with another errors. how do deal with it?
No description
7 Replies
kapa.ai
kapa.ai14mo ago
Hi @amounguluz. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai14mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the useForm documentation (https://refine.dev/docs/packages/documentation/react-hook-form/useForm) for more information on handling errors with errorNotification. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
useForm | refine
The @refinedev/react-hook-form adapter allows you to integrate the React Hook Form library with refine, enabling you to manage your forms in a headless manner. This adapter supports all of the features of both React Hook Form and refine's useForm hook, and you can use any of the React Hook Form examples as-is by copying and pasting them into you...
kapa.ai
kapa.ai14mo ago
<@449457239418208256> kapa.ai is still learning and improving, please let us how it did by reacting below
metropolitan-bronze
metropolitan-bronze14mo ago
No description
metropolitan-bronze
metropolitan-bronze14mo ago
and i use useForm from "@pankod/refine-antd"
metropolitan-bronze
metropolitan-bronze14mo ago
No description
absent-sapphire
absent-sapphire14mo ago
Hello, I don't understand what the problem is with these screenshots. Can you post a codesandbox where we can reproduce the issue so we can help?