Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How do I communicate between extensions

How do I communicate between extensions

Schmidtc63
Shopify Partner
102 14 29

I have an extension that sets some variables:

  • isCustomerLoggedIn
  • needsLogin

The first is easy using BuyerIdentity: !buyerIdentity?.customer.current === undefined

The second variable is a graphql admin call to determine if the customer has metafields that require login. Rather than repeating the query in the second extension, I'd just like to pass that information from the first. I tried using storage -- storage.write("needsLogin","true") but it appears that the second extension cannot read storage from the first.

 

Any suggestions?

 

Thanks,

Chris

Replies 0 (0)