Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
88 stars 9 forks source link

Complete breakdown when trying to dismiss toast #55

Closed CalvinBentoSMB closed 3 years ago

CalvinBentoSMB commented 3 years ago

When we click the dismiss button for the toast our entire app breaks down. We have tried giving it an onDismiss function as well as tried without it. Even when the onDismiss is a basic console log callback - our entire app breaks down when you try to hit the 'x'.

We initially thought it was something wrong with our app, but with each successive app we are working on we are getting the same issue and only when on App Bridge 2.0.2/latest.

We have solved it by hiding the 'x' button using css but obviously that's not the greatest solution.

Any others experiencing this?

I have attached an image of the first error log that generates when you dismiss.

toast_dismiss_explosion

CalvinBentoSMB commented 3 years ago

Sorry posted this in App Bridge repository when it should be in the polaris one.