Force Show Spinner - take 2

Continuing the discussion from Force show spinner (opposite of anvil.server.no_loading_indicator):

While the JS approach in the above post works, it would be great if there was a native option to have this implemented as a dedicated function that could be applied with a with block or decorator.

with anvil.loading_spinner:
     some_slow_client_side_function():
3 Likes

Would likely be

with anvil.loading_spinner():

1 Like