PrivyProvider
component within your app.Namely, if you are using Gatsby’s wrapRootElement
to wrap your app with the PrivyProvider
, you should use wrapPageElement
instead, like below:wrapRootElement
for React Contexts, the PrivyProvider
component contains UI (HTML) elements as well, including a dialog (the Privy modal) and an iframe (the Privy iframe, used for embedded wallets). Given these UI elements, wrapPageElement
must be used instead of wrapRootElement
.