App reviews, troubleshooting, and recommendations
I would like to create some initial entires in my database right after the app is installed. Although I can't seem to find the location for that. I was looking at other people's custom code and they added it right when oAuth was successful. I don't see any option for that in this repo, seems like it's all behind the scenes.
I am using React/NodeJS from Shopifys App Tutorial. My git files basically look the same as the template: https://github.com/Shopify/shopify-app-template-node/tree/cli_three
I was thinking putting it somewhere in `/web/index.js` but that might be a bad spot.
An alternative would be on the root page "/" of react, do an API call then and check if the data is present. Although this option is not the greatest.
(I have the Api call all hooked up and working, I just need a location of WHERE to dump this function RIGHT AFTER the app initially installs. Ideally, only called ONCE)
Hello @12345vb
Most suitable location is -
i) where shopify API initialize (e.g.Shopify.Context.initialize) please refer screenshot -
ii) in "auth/callback" route with some conditional statement.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025