Mutation Mode
Hello i am calling a edit url like
http://localhost:3000/financialplans/edit/20
20 is an invalid ID. The Server responds with 403. However refine loads a blank form see screenshot. Is it possible to set this to pessimistic? If yes can you please point me in the right direction. Thank you

2 Replies
correct-apricot•3y ago
Hey @zomh,
You can use ‘useForm’ property that ‘mutationMode’. You can check out this doc: https://refine.dev/docs/api-reference/core/hooks/useForm/#mutationmode
useForm | refine
useForm is a hook that allows to manage forms. It has some action methods that create, edit and clone the form. The hook return value comes to according to the called action and it can run different logic depending on the action.
foreign-sapphireOP•3y ago
Thank you