// Server-side loader function
export const loader = async ({ params, context }: LoaderFunctionArgs) => {
// access current authenticated shop
const shop = await context.api.shopifyShop.findFirst({
select: {
id: true,
},
});
return {
shop,
};
};
// Server-side loader function
export const loader = async ({ params, context }: LoaderFunctionArgs) => {
// access current authenticated shop
const shop = await context.api.shopifyShop.findFirst({
select: {
id: true,
},
});
return {
shop,
};
};