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
You're right the "warning/error" is coming from our setupModal function, apparently what's happening is that createRoot gets triggered every time setupModal is invoked in a dApp, this can happen because of some re-rendering of the component/context where setupModal is placed or on hot-reload during development.
Is there a way to get rid of this error?
Yes, it's possible to get rid of it.
From the next release, you can expect not to see this warning.
Describe the bug
Getting following error in the console:
Seems to be coming from this code in our vmInitializer.js file of a BOS gateway template:
useEffect(() => { if (!near) { return; } near.selector.then((selector: any) => { setWalletModal(setupModal(selector, { contractId: near.config.contractName })); }); }, [near]);
See there is a similar closed issue.
Is there a way to get rid of this error?
The text was updated successfully, but these errors were encountered: