SaveBar Component: Primary button loading state

I want to add a loading state when the primary button is clicked, but I don’t know how to do it. Thank for your interest!

You need to use something like

loading={isSubmitting ? '' : undefined}

I don’t believe this is in the docs which is a bit frustrating, but when you want loading to be true you need to pass an empty string, otherwise false.

1 Like

There is a related GitHub issue.

1 Like

Beat me to it! I use the same thing :slight_smile:

1 Like

Thank you. That’s so weird :grin: @Luke