App reviews, troubleshooting, and recommendations
The suggested onboarding UX for App Blocks suggest showing a select list of all installed themes.
However I do not find any Graphql API for querying themes.
Any pointers on how to query that from my App's app._index.tsx ?
Context: I am developing a Remix app.
Solved! Go to the solution
This is an accepted solution.
thank you.
for future reference and other poeple, I've listed installed themes via the REST api instead inside the loader function :
export const loader = async ({ request }) => {
const { admin, session } = await authenticate.admin(request);
const shopData = await admin.rest.resources.Shop.all({ session: session });
const d= shopData?.data[0].domain;
const themeData = await admin.rest.resources.Theme.all({ session: session });
const themes = themeData?.data;
return json({ domain :d, themes});
};
export default function Index() {
const shopInfos = useLoaderData();
const shopDomain = shopInfos.domain;
const themesArray = shopInfos.themes;
...
Did you find any information on the "select theme" part ?
I've got a similar issue:
rejected for "no-functionnal UI"
I can show a Select input, but how to fill it with theme list options ?
Hi, Since I wasn't able to find a GraphQL API to get list of themes, I used the following URL in my link instead:
This neatly directs you to theme editor for the current theme
This is an accepted solution.
thank you.
for future reference and other poeple, I've listed installed themes via the REST api instead inside the loader function :
export const loader = async ({ request }) => {
const { admin, session } = await authenticate.admin(request);
const shopData = await admin.rest.resources.Shop.all({ session: session });
const d= shopData?.data[0].domain;
const themeData = await admin.rest.resources.Theme.all({ session: session });
const themes = themeData?.data;
return json({ domain :d, themes});
};
export default function Index() {
const shopInfos = useLoaderData();
const shopDomain = shopInfos.domain;
const themesArray = shopInfos.themes;
...
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025