Single 'state.executing' Statement for ANY Server Connect?

I’ve been using my app on a train, and finding it frustrating as my mobile signal comes and goes… sometimes server connects either take seconds to execute or give an error state, and I’m wondering about the best way to handle this situation for my users.

One thing I’d like to do is have a single universal spinner which is shown when any server connect is running.

So for a single server connect I can have a statement like:

get_payment.state.executing

However my app has about 200 server connects, so that would make for a very big OR statement.

So I was wondering…

Is there a statement which is true if ANY server connect is executing?

So something like:

any_server_connect.state.executing

If not, then any other ideas about how to do this would be really appreciated!

Best wishes,
Antony.

Community Page
Last updated: