Hide button until API workflow complete

hey everyone! I am now trying to hide a button until my API request is complete. as you can see in the published version here the “tweet” button is showing (along with the broken image). However, I want to initially hide the button and image element when the page loads and then only show it once the API request has finished. How can I go about doing this? Thanks!

1 Like

The collection has a property called “isFetched”. Its not readily apparent though on how to access it…

watch this loom video:

2 Likes

absolutely brilliant thank you. I found another work-around but I prefer your solution much better (this is what I did for anyone curious) basically I tied to the DIV to only display once the collection data was populated

1 Like