Hello,
On the new Polaris, it seems that it is encouraged to use s-link
and s-button
component to navigate between pages using the href
attribute. I like this approach, but the issue is that I could not find a way to hook with the shopify.saveBar.leaveConfirmation()
.
As this is required to provide a good user experience, is there a way for the new Polaris to automatically call this on every navigation attempt, to ensure that merchants are not moved away if they have a dirty form?
Thanks.