You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on each dynamic page load works, but only if the user clicks the "Load once" button. Clicking "Don't ask again" breaks the script. This probably also has to do with the CookieConsent reset()function not being able to detect already executed scripts.
I create the hotfix this issue. When a page change occurs in react / next.js, it does not detect DOM changed. My solution reset and re-run iframemanager at each page change. PR #55
import{useRouter}from'next/router'...useEffect(()=>{// const cc = initCookieConsent()constim=iframemanager()setTimeout(()=>{im.run(...)},1000)// Since it is not SSR, it is necessary to allow time for the client to render itreturn()=>{im.reset()// stop observers, reset scoped variables}},[router.asPath])...
Hi,
i am loading some video portfolios via ajax on an wordpress theme. Is there a way to re-run the script to detect the that are new to the dom?
Thanks for your help!
Cheers
Tobias
The text was updated successfully, but these errors were encountered: