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():