[Bug] When storeValue is called at the start of an onClick function, the button stops loading
Description
In a discussion with a user on discord, they are facing an issue with loading not being shown onClick. On checking, it was found that the storeValue was there at the start of the onClick function. This is causing the loading to show and stop immediately.
Steps to reproduce the behavior:
Add steps to reproduce this behaviour, including console/network logs & screenshots
- Add an API call to the onClick of the button widget
- Click on the button and the loading shows
- Now in the onClick JS, add a
storeValuecall at the start of the function/ - Now, click the button and the loading will show for a bit and then disappear.
Important Details
- Version: Cloud and Self-Hosted
- OS: MacOSX
- Browser chrome
- Environment production
Assign me this issue
Thanks for your interest @J-Ankit2020. This is not really a Good first issue. I'll remove the tag. Please find some other issue to contribute and tag me. I'll assign it ASAP
https://github.com/appsmithorg/appsmith/issues?q=is%3Aopen+is%3Aissue+label%3Ahacktoberfest
Cannot seem to reproduce this anymore. Can you confirm @ayushpahwa I tested with
{{
storeValue('epochtime', Date.now());
Api1.run(() => {
Api2.run(() => {
Api3.run();
});
});
}}