Help Needed: To open action extension

Help Needed: To open action extension

Tripti_Singh
Shopify Partner
1 0 0

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?

Replies 0 (0)