Closed DaveMitten closed 3 years ago
As title says.
const shopOrigin = getShopOrigin(); console.log({ shopOrigin });
All I do is call it like so. In a component.
It's not in a useEffect or lifecycle. It is in a standard "page".
Have I missed something?
To get the shop name I use useShopOrigin() instead of getShopOrigin(). Perhaps that works for you as well.
useShopOrigin()
getShopOrigin()
const shopName = useShopOrigin();
As title says.
All I do is call it like so. In a component.
It's not in a useEffect or lifecycle. It is in a standard "page".
Have I missed something?