rare-sapphire•3y ago
custom success notification for useUpdate hook
i want my custom sucess notification for use update hook
useUpdate({
successNotifiacation:{
message:"ddd",
description:"dddd"
}
})
this way its not working
2 Replies
flat-fuchsia•3y ago
Hey @rehan1,
I reproduced your issue and I created a custom notification without any problem. You must pass the
type parameter to the successNotifiacation.
Can you try this code and tell me if it works for you?
By the way, you can pass the successNotification to useUpdate's mutate function not useUpdate. Just like this:
rare-sapphireOP•3y ago
yeah it worked
thanks