App reviews, troubleshooting, and recommendations
I've created a Hello World Shopify Public app with node template and trying to create Shopify Extension for the Subscription.
But Having issue to use the
import { Text, extend, render, useData, useContainer, useSessionToken, useLocale } from '@shopify/admin-ui-extensions-react';Error:
function Create() { const data = useData(); return ( <Text> We do not support creating products directly to plans at this moment. -- {data?.productId} </Text> ); }
extend( 'Admin::Product::SubscriptionPlan::Create', render(() => <Create />), )
Error Message at line which I've useData written:
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to
Is anyone having same issue?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024