Nextjs - Working with multiple hooks and delay in browser recognition #427
-
Goal
ContextI am trying to understand how to make wagmi work better with NextJS given Next is built to do server-side rendering and Wagmi/Web3 relies on client-side loading of wallets and interactions with scripts. I followed the solution provided in previous Q&A bugs which is to use a component state and Code
Console:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
useContractRead
should only be called at the top level. If you want to call it conditionally, you can use theenabled
option.