How do I communicate between extensions

How do I communicate between extensions

Schmidtc63
Shopify Partner
98 14 27

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)