Closed muchisx closed 6 months ago
Hi @muchisx , thank you for opening this issue, we're looking into it.
thank you @matteodepalo !
I'm sorry if its not the right repository, I searched a lot for the @shopify/app-bridge-react repository but seems like it's private or I just couldn't find it, I am eager to make an issue there if I mistakenly did it here in case you can show me where!
Hi there @muchisx 👋
I am going to close this issue here, as I believe you have seen the release regarding the new App Bridge Modal on the App Bridge issue you referenced.
That repository should be the best repository for future questions about App Bridge components. But feel free to reach out here as well with future issues about the template. Thank you! :)
Issue summary
@shopify/shopify-app-remix
version: 2.1.0Relevant logs / Code
My routing seems fine server-side:
My app.tsx:
My call to the modal (handling opening and closing state)
My route
app.modal.create_category,tsx
Expected behavior
Opening the modal shouldn't break the other App-bridge components
Actual behavior
When opening the modal I get this error in the console:
Host did not expose RPC
and after that the other elements of App Bridge dissapear (like in the video, where the titlebar just goes away)Now, the modal works and the content within it works aswell. But I am required to refresh the page to get the App bridge TitleBar to show-up again because it breaks.
I have been trying to debug this for a longtime but havent been able to find a solution, anyone knows how to fix it ?
Part of the app-bridge components dissapear and stop working when i open a modal. I'm using the remix-template with @Shopify/app-bridge-react
https://github.com/Shopify/shopify-app-template-remix/assets/34131801/5a38c365-c438-42c0-a4ef-5692876c81aa
Steps to reproduce the problem
Provider
at the top of the app and pass thehost