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![No description](https://cdn.answeroverflow.com/1062764705090904174/image.png)
![No description](https://cdn.answeroverflow.com/1062764705510330408/image.png)
2 Replies
exotic-emerald•2y 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.
compatible-crimson•2y ago
Thank you