Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi, I'm creating an App in shopify and I'm learning to use Shopify APIs, my app is made in Laravel and React.
Right now, I'm trying to create an index table with the orders of the store, I copy and paste the polaris component, that have 3 orders made in the code as example, but I want to pass the orders trough the API /orders, so I create the route in the web.php and in the component use the useAppQuery hook, I made a console.log and give me the data:
the problem that I have is when I try to pass that data to the view, I saw many examples in youtube where do it like this, but in the console it says to me that data is undefined
I don't know what to do, please help me.
Solved! Go to the solution
This is an accepted solution.
Hi @gabrielravelo 👋
For issues with Shopify PHP lib, please submit the issue in the public repo shopify/shopify-api-php.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Hi @gabrielravelo 👋
For issues with Shopify PHP lib, please submit the issue in the public repo shopify/shopify-api-php.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Ok, thanks.