App reviews, troubleshooting, and recommendations
Trying to develop an app (react node and Polaris) and i wanted to add an Admin Link for the product details page. I have wired up the link but when the link hits my product create page i am unable to access the query string values. There is no example that i could find in the react node example.
How can i access the query parameters from inside a React.Component?
Example is my Admin Link will create https://xxx.myshopify.com/admin/apps/contentApp/create?id=17231912345051&shop=xxx.myshopify.com. I a...
id = 17231912345051
shop =xxx.myshopify.com
Hi @pjv0580 ,
Try npm install query-string
import qs from 'query-string';
var params = qs.parse(this.props.location.search);
Best,
Achieve Team
Hi, Same issue here. if you found any solution please share here
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023