Snipcart cart overlay appears normally the first time, but if I navigate away and return, it’s not working until page refresh. Next.js app integration deployed on netlify. Console shows error
snipcart.js:51 The #snipcart div was removed from the document. This may happen when a frontend library is used to render the div. You should only render it once, or it might prevent the cart from working.
(anonymous) @ snipcart.js:51
snipcart.js:51 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/cart”.