I have a block with a button spinner that calls an event consumed by its parent, however it doesn't show a spinner at all and the button stays clickable even if the event is still in progress. Any solutions?
Hello,
I think that once the event is triggered, the whole flow shifts to the child that is subscribing to this event. In other words, the execution is no longer inside the same block.
You could try the following approach:
This way, the loading state is handled where the actual processing happens rather than in the publisher flow.
Hi @Hilario Jr Castañeda ,
The issue seems to be same or similar to this one here: Local variable in block changes but doesn't trigger OnRender . You can check the solution is provided there. It is for O11, but it should for ODC as well.
Here is some documentation as well: Defining Asynchronous JavaScript Code
Hi, thank you for the input. This was helpful.
Hi @Hilario Jr Castañeda ,Try the "IsSaving" parameter suggested by @Sherif El-Habibi. That will work.Please check the attached OML.