The public embedded app that I am developing currently has a sub-optimal user experience. The thing is, when the user launches my app, depending on whether the profile setup is complete or not, I redirect the user either to /signup or to /home route. I do this quite simply using the Next.js utility method:
However, what this does is it momentarily loads my app full-screen (i.e. without the visible Shopify Admin UI), and then reloads as an iFrame inside the Shopify Admin. So, essentially it works, but the flickering of the screen is somewhat annoying.
I know that I can use AppBridge utils to gracefull handle such redirects on the client-side: