EightfoldAI / octuple

The Octuple component library
MIT License
16 stars 45 forks source link

flash of text when creating a button having loading={true} on instantiation #832

Open jhoward-eightfold opened 1 month ago

jhoward-eightfold commented 1 month ago

In a scenario where loading has a true value from the beginning, the button component text flashes before switching to the loading animation. Reproducible in storybook: https://github.com/EightfoldAI/octuple/assets/106610186/931476b9-6f3d-41ab-9b12-0b1c6b90ce07

This use case is that the button action is dependent on an API call but we want it rendered on the page with loading animation until we know the correct text/action to use