I'm trying to get the currently logged in username and initials to load into the UserMenu component in the Polaris Topbar within an embedded app. The Shopify App Bridge has a method app.getS...
No content to show

User Activity

Hi Ryan I'm just trying to use graphql whenever possible and couldn't find themes or assets anywhere in the schema. I using the REST API now for the themes GET so it's not a problem. Thanks for taking a look. Paul
Hello I'm writing an embedded app and I need it to display a list of themes for the user. Once the user has selected a theme I then want to add some assets to that theme. I want to move away from REST to using GraphQL. The endpoint for REST is.../adm...
Hi Michelle Works a treat! Great to get this sorted. Thanks for your help. Paul  
Hi Michelle Well, I'm just glad I wasn't doing anything too wrong. I'll continue using the app that I've created via the tutorial as that's working as expected. It'll be good to use the CLI again once the issue is resolved as it potentially saves hea...
Hey Markus Thanks for helping out. I tried the code below based on what you posted and I have the same result. I can see the context in the VSCode terminal but not in the browser console. I'm sure I'm missing something obvious. I've described the pro...
Hey Katie I created a new project using the CLI and its the same. The chrome dev tools show null for the context but I can see the context written back in the terminal in VSCode. I'm sure its something I'm doing wrong. These are the steps I go throug...
Hey Katie I can see the context written back to the terminal in VSCode but it's still null in the browser but at least we are getting somewhere  The @babel/preset-env is installed as a regular dependency. If I install it as a dev dependency the cont...
Hey Katie, Can I just confirm, do I install the @babel/preset-env package as a dev dependency as per install instructions at https://babeljs.io/docs/en/babel-preset-env ?  Also, do I have to uninstall the babel-preset-env package from the regular dep...
Hi Katie https://github.com/clucs123/shopify-react-test No problem. I haven't amended this project since it was created in the shopify-app-cli, apart from the index.js file and my .env config file.  The .env file obviously isn't on GitHub for securit...
Hi Katie The app has always been running inside in the Shopify Admin. I've console logged the context and as you can see it is null. 
Just to be on the safe side I've created a new app in Shopify and a new project from scratch using the CLI and added the simple test component above.  The app runs in the test store but again the context is always null.  // index.jsimport { Heading, ...
Hi Trish, Well, it's good to know that my code does actually work. I agree that it must be a config issue. I've tried hard-coding the config values as you suggested but it still doesn't work. I've also checked the API_KEY and shopOrigin variables are...
Hi Trish, This is my full index.js code. I tried your code but sadly I still get null back. I included a screenshot of the browser console showing what happens when the button is clicked. Thanks again for the help, Paul import React, { Component } fr...
This is my package.json file.{ "name": "shopify-node-app", "version": "1.0.0", "description": "Shopify's node app for CLI tool", "scripts": { "test": "jest", "dev": "NODE_ENV=development nodemon ./server/index.js --watch ./server/inde...
Hi Trish Thanks for a lot for the help. Unfortunately, I'd already tried this over the weekend after finding the AppBridgeContext exported in context.js in app-bridge-react, but the context is always null. I've created a simple index.js page to demon...
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.