NextJS or Single page app

When I initialise my webform from the bbox init for the first time, the form loads and behaves as expected. When I leave the page, and subsequently revisit the page (using nextJS routing) as a single page app the form messes up. It loads all the scripts everytime the page is visited. Is there a way to prevent this?

Tagged: