Gadget Developers

GD

Gadget Developers

Build SAAS apps alongside thousands of other Gadget developers. Get help, and offer help to others in the community.

Join

Preview is not loading

Hey - I'm trying to preview stores with the app installed but it doesn't load because the shopcontext.jsx and hostcontext.jsx doesn't seem to work inside the embedded preview. Same in development as and in production. Works fine on other stores using react context providers for hooks in the templates. Once I tried using a useFindFirst for the embeddedApp in app.jsx but then it just complained about host not being provided (in the index.jsx loading after loading app.jsx). I don't want to have to refactor the app since I like having the context providers. What can I do?...
No description

We are running out of credits and we want invetigate why that it happening

Hi team, I noticed something concerning with one of the stores. It has around 10k records for shopifyCollect, but the sync for this single shop took about 19 hours of our request time. I want to understand: ...

Error message while loading

Hi, I'm trying to understand how to remove/replace the error message while the app is loading. This is not an error, it's just the time it takes to ingest data from an external API. The error is "Error al cargar los datos. No se pudieron cargar los datos de invitations. Error: API returned unknown: [GraphQL] signal is aborted without reason." ...

How to use shopify admin API using external Gadget API

I'm currently using Cloudflare to process webhooks and the Gadget client to access the Gadget API externally. My plan is to fetch the Shopify access token using the Gadget API and then authenticate a Shopify client. Is there a more efficient way to achieve this?

Payment error message and deployment issue

I am trying to deploy and get this error in CLI. Then when I went to gadget.app i see that this payment error message, even though I got charged succesfully yesterday. I tried updating my card and it's still the same. Don't know if these two things are related at all.
No description

(new) Dev Dashboard

Hey peeps.. I have a question and I've tried to search this out myself.. apologies if I've completely missed something but is it possible to connect to and deploy to the new Shopify dev dashboard rather than the partner portal? This is for an internal app build - not for publishing ever. Thanks!

Trigger webhook registration programmatically

Hi all, I'm struggling a bit with the registration of Metaobject webhooks. As I know you'll need to add a filter in order to register a webhook. So I'm having a type:xxx filter in my webhook filter. In general this works when the Metaobject definition was created before you install the app. ...

Using live query for messaging inside chatbot

Hey guys. I have added human handoff functionality inside my ai chatbot. I use the live query to do this. Just wondering what safety things I should be adding - say for instance if the connection gets lost is there an advised way to deal with that? If the users internet goes down or there's an error - what's the best way to deal with that. Apologies if this is a rookie question, I've not played with web sockets before...

I am building a react native frontend and used the auth system. Is there any way to persist session?

Each time I sign in it creates a new session. Is there a way to store this value with AsyncStorage and then send it with any requests from the app instead of the default localStorage?

Cold start add-on

Gadget team has enabled that add-on which fixes cold star for me a while ago, and my app had pretty good LCP scores at first. But since around June 29th, they’ve gotten bad again. Even though I pay for this extra add on… Do you know what might be causing this? I thought this add-on would be helpful - and it was for a while but now I’m just paying for something that isn’t working. Any idea what might be going on? :/ My app is https://kedra-checkout-rules.gadget.app/

How to get the deployment List for our production app?

How to get the deployment List for our production app?

How to directly access Shopify API from frontend

I've added the following to my shopify.toml file: ``` [access.admin] direct_api_mode = "online"...

React state refresh after mutation

Hey guys, I need help. Do you experience after executiong bulkUpsert the page will be getting update or the state is getting update instead of specific component? This suddenly happen and I can't find the culprit.

Can someone help me setup a custom domain on my app?

I am looking to add a custom domain to the app I am building.

Oauth error missing_shopify_permission: read_users

Hi all, After adding the read_users scope to my app, I'm getting the error Oauth error missing_shopify_permission: read_users whenever I try to install. I already tried to delete the shopifyShop record before reinstalling, but that didn't solve it. The store I'm trying to install is on Shopify Plus. ...

How to create a flow action endpoint in gadget

https://shopify.dev/docs/apps/build/flow/actions/endpoints#verifying-requests I have a flow action that has to run an api POST endpoint, but when running it it seems like it's not compatible out of the box. Can i configure a route so it will work as a flow endpoint?...
No description

User Id Context on admin extension

Is it possible to know the userid of the user (under the merchant/shop) within an admin extension context? is it included in the connections?

Any way to install app to shopify store from gadget

I have a gadget app that I converted to a sales channel. I want to install it to a store of mine which is non-development. Can I install it? My app is public distribution but not yet on the shopify app store

Add shopify model fields

Hello, I wan to get seo field for product, blogs, collection, pages and articles. Currently if I add them to the shopify fields in the schema.ts I get an error saying that is invalid. My solution was to add a query to shopify api and fill this data when create and update model actions get called....

Filesystem Permission Error - Checkout UI Extension Development

Hi, I'm trying to build a Thank You page extension for my app following the Shopify docs. The AI assistant has tried to fix a persistent filesystem error without success. I'm not a developer, so I'm still learning about the platform and Shopify’s requirements, so I asked the AI to summarize the problem. ISSUE SUMMARY: EACCES: permission denied, mkdir '/gadget/app/extensions/my-extension/dist' Shopify CLI fails to create the dist/ build folder for Checkout UI Extension (purchase.thank-you.block.render) when running yarn shopify:dev in Gadget cloud environment. ...
Next