Svelte App Header Button doesn't update the first time it is clicked and returned
TRLQuestion
I have a simple button for toggling the Token link status of an Actor.
It shows a different icon depending on whether the Actor is linked to their Token or not. When you click it, it toggles between the icons and updates the token.
However, I am running into an issue where the first time I click the button, it updates the token, but not the button.
All subsequent clicks seem to work.
Below is my code and a recording of this happening. Any idea what this might be?