return must be used to pass the promise returned by the update function. I stumbled on this when errors were not properly caught, because the promise could actually not be handled as expected. Not all hooks could fail or are even asynchronous, but I think it's best practice to handle things properly and consistently for all hooks.
return
must be used to pass the promise returned by the update function. I stumbled on this when errors were not properly caught, because the promise could actually not be handled as expected. Not all hooks could fail or are even asynchronous, but I think it's best practice to handle things properly and consistently for all hooks.