Can manage to understand optimistic update.
Hello there,
I'm trying to implement optimistic update in my application but I struggle a bit. Here is my function :
Few questions:
- Do we agree than the
onMutate
function will be called before the mutationFn
?
- Where are the data parameter on the onMutate
function comes from ?0 Replies