Thank you for your amazing work, I couldn't do my own API routing with Shopify's CLI server.
I tried using in home.js:
import { useAppBridge } from "@shopify/app-bridge-react";
const app = useAppBridge();
But I get the error:
Error: No AppBridge context provided. Your component must be wrapped in the <Provider> component from App Bridge React.
ShopifyAppBridgeProvider should do the job looking at the source code. Maybe I just did something wrong.
Thank you for your amazing work, I couldn't do my own API routing with Shopify's CLI server.
I tried using in
home.js:But I get the error:
Error: No AppBridge context provided. Your component must be wrapped in the <Provider> component from App Bridge React.ShopifyAppBridgeProvidershould do the job looking at the source code. Maybe I just did something wrong.