Expose a close/dismiss callback in <ProductLink>

Hey Shop Minis team :waving_hand:

I’m building a Shopify minis using ProductLink component, when the PDP opens, I pause the active video, but there’s currently no reliable way to know when the PDP is dismissed/closed so I can resume playback.

Request: could the API expose a close/dismiss callback (or a promise)?
Is adding an official “PDP closed” signal on the roadmap?

Hey!

There actually are hooks for this already - you can use useOnMiniFocus and useOnMiniBlur from the SDK. It seems we have missed adding them to the docs but I’ve created a ticket to fix that `#88112`

Oh nice, I didn’t realize those existed! Thanks for letting me know.