Closed Stef733 closed 3 months ago
Thanks for reporting. We are looking into it.
Any update on the loading state? or at least a work around!
Any update on the loading state? or at least a work around!
@henrytao-me
Hi @Stef733,
We added a new ui-save-bar
element for you to manually control the state of the contextual save bar (including disabled
and loading
buttons) if that works better for you: https://shopify.dev/docs/api/app-bridge-library/web-components/ui-save-bar
There's a SaveBar
React component in @shopify/app-bridge-react@4.1.0
too if you'd prefer to use that: https://shopify.dev/docs/api/app-bridge-library/react-components/savebar
Thanks for the feedback!
@charlesdobson @henrytao-me The disabled and loading props on the react app bridge package are not working at all in the latest version of app-bridge react (or web component).
Issue summary
The Contextual Save Bar disappears as soon as a form is submitted without showing a loading state.
https://github.com/Shopify/shopify-app-template-remix/assets/15696423/6761dc07-d085-4822-9ec9-bd41891b0273
@shopify/shopify-app-remix
version: 2.3.0Expected behavior
The Contextual Save Bar should show a spinner
Actual behavior
The Contextual Save Bar disappears as soon as the form submission begins
Steps to reproduce the problem
Use the following sample route in the shopify remix template.
Note: this issue persists with both
fetcher
andnavigation
and both the ShopifyForm
and the RemixForm
andfetcher.Form
components.