Comments (2)
Saw a similar issue when I tried this and read somewhere dynamic in Next is the best way to resolve this.
i.e.
import dynamic from "next/dynamic";
...
const WalletMultiButtonDynamic = dynamic(
async () =>
(await import("@solana/wallet-adapter-react-ui")).WalletMultiButton,
{ ssr: false }
);
...
return (
<main>
<div>
<WalletMultiButtonDynamic>
....
</WalletMultiButtonDynamic>
</div>
</main>
Hope that helps.
from wallet-adapter.
dynamic in Next is the best way to resolve this
Yeah, that's right. The state on the client will always be different than the server because the server can't know about the wallets injected into the browser.
from wallet-adapter.
Related Issues (20)
- Module not found errors when trying to run packages/starter/create-react-app-starter HOT 2
- Sending transaction with devnet connection does not work with Solflare wallet HOT 3
- Firebase auth HOT 1
- Where to import useWalletMultiButton in CustomConnectButton HOT 1
- signMessage for Safepal HOT 1
- signMessage for Ledger HOT 1
- How do I remove the drop down menu from the walletmultibutton and get it to open a popup like on the demo link? HOT 1
- Phantom on mainnet mode successfully signAndSend transactions while app is using a testnet HOT 1
- signAndSendTransaction method not available HOT 1
- Pass the krypair of backend wallet as a Signer for the transaction
- Can the wallet plugin support ok and backpack? HOT 2
- localstorage sometimes behaves strangely HOT 1
- sendTransaction doesn't work with String data HOT 1
- Sending SPL token using getOrCreateAssociatedTokenAccount wallets without the token doesn't work HOT 2
- Request blocked Warning from phantom wallet HOT 1
- I can't get the wallet to open to initiate a transaction. HOT 5
- WalletSignTransactionError: Reached end of buffer unexpectedly HOT 1
- Detailed error messages on transaction sending
- TrustWallet - Cannot read properties of undefined (reading "serialize") HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wallet-adapter.