{ submitting = true; return async ({ result, update }) => { if (result.type === 'success' && typeof result.data?.following === 'boolean') following = result.data.following; await update({ reset: false, invalidateAll }); submitting = false; }; }} >