Recently I was working on a shopify app where I needed orders/fulfilled webhook. I was on the latest React Router Template and what I noticed, the Webhook was working only after I start the server with shopify app dev. Then if I change anything on the customer account UI extensino and save this, the webhook breaks and doesn’t work. That means after the Vite hot reload on that extension UI breaks the webhook tunnel.
How can I solve this issue?
We are having the same issue. It’s been very annoying trying to test webhook handling locally and it’s going on for months now.
The flow:
- You edit an extension file
- The CLI rebuilds the extension and calls the devSessionUpdate GraphQL mutation
- Shopify re-processes the app configuration as part of activating the dev preview
- Webhook subscriptions get disrupted (likely cleared or re-registered with stale URLs)
- Server-only changes don’t trigger devSessionUpdate, which is why they work fine
I hope this helps identify the reason for the issue.