79720040

Date: 2025-07-30 13:42:24
Score: 0.5
Natty:
Report link

Instead of rxMethod<void> you could do something like rxMethod<{ onSuccess?: () => void; onError?: () => void }>.

In you tapResponse, you could then use onSuccess and onError.

tapResponse({
  next: (response) => {
    ...
    onSuccess?.();
  },
  error: () => {
    ...
    onError?.();
  },
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gana