App reviews, troubleshooting, and recommendations
We have created one admin extension app and are trying to open an admin-action extension immediately after another extension closes.
it is working when we are using the navigate on press or click functionality.
<Button
variant="primary"
onPress={() => navigation?.navigate('extension:admin-action-2')}
disabled={!dataLoaded} // Disable button until data is loaded
>
Create - Flow
</Button>
But is not populating when we are trying to open it after we submit the form through the action extension.
useEffect(() => {
if (showSuccess || showError) {
const timer = setTimeout(() => {
if (showSuccess) {
console.log("Navigating immediately after success");
navigation?.navigate('extension:admin-action-2');
setCustomflow(true);
}
setShowSuccess(false);
setShowError(false);
setIsSubmitting(false); // Disable the button
close(); // Close the popup
}, 3000); // Hide after 3 seconds
return () => clearTimeout(timer);
}
}, [showSuccess, showError, navigation, close]);
we are getting console value but the action extension not populating also not getting any error for this.
Is there any other approach we can use to open an action extension just after we submit the form through another action extension? We don't want to perform on press action.
Can you help with this?
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025