Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'm trying to use the Shopify Resource Fetching https://shopify.dev/docs/api/app-bridge-library/apis/resource-fetching#example-fetch-directly-from-t... with the AbortController, but it doesn't work. I pass the signal to the fetch and abort the signal, but nothing. Could you take a look at it?
const SHOPIFY_ADMIN_GRAPHQL_API = "shopify:admin/api/graphql.json"; export default async ({ query, signal = null /*, variables = {}*/ }) => { try { const response = await fetch(SHOPIFY_ADMIN_GRAPHQL_API, { method: "POST", signal, body: JSON.stringify({ query, }), }); if (!response.ok) throw new Error(response.statusText); return await response.json(); } catch (error) { throw new Error(error); }
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024