How do I communicate between extensions

Shopify Partner
89 13 22

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?




Replies 0 (0)