Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] multiple buttons on one page, only one loads the buttons #118

Open
movingelectrons opened this issue Dec 3, 2021 · 2 comments
Open

Comments

@movingelectrons
Copy link

trying to use this in a next js app, when more than one instance on a page, only one loads, usually the last one but it seems to change sometimes but only ever one is created. Error message says something about zoid destroying things...

VM11329 js:2 Uncaught Error: zoid destroyed all components
at js:2
at js:2
at js:2
at Object.all (js:2)
at Bo (js:2)
at js:2
at ml (js:2)
at js:2
at Array.forEach ()
at Object.value (js:2)
at js:2
at Module. (js:2)
at t (js:2)
at js:2
at js:2

@danwetherald
Copy link

+1

I am also seeing this, from my research it seems this will happen if the script is included in the page multiple times.

Any solutions?

@efraimjer
Copy link

In your next.config.js switch reactStrictMode to false like this:

const nextConfig = {
  reactStrictMode: false,
}

module.exports = nextConfig

it should work fine now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants