Comments (4)
The relevant code is here: https://github.com/briandoyle81CB/dao-gate/blob/main/src/app/page.tsx
from wagmi.
Spent some time trying to reproduce and wasn't able to unfortunately (sounds like there might be a race condition from what you described). Happy to look into this further if there's some way to consistently reproduce. Also, curious about the following.
- What browsers and/or operating systems have this issue?
- What address(es) does this issue happen with?
- Does this happen when you use Viem directly?
- Are you using a high-availability RPC service? (e.g. Alchemy, Infura, QuickNode)
from wagmi.
Thanks for looking! I'm hopeful that this is a random edge case, but worried about it being too common - seen in about half of the 8-12 browser/machine combos we've tested, with > half machines showing the fail state on at least one browser.
But this is using the way I'm teaching how to use useReadContract
(https://docs.base.org/base-camp/docs/reading-and-displaying-data/configuring-useReadContract) and we haven't seen or heard something like this reported before, or experienced it ourselves.
Do you see anything less than optimal in the implementation?: https://github.com/briandoyle81CB/dao-gate/blob/main/src/app/page.tsx
- Only tested on Sonoma, but with Firefox, Chrome, Brave, and Safari with no patterns emerging
- Tested with the current address
0x038ee341181e1090159eab1f4ba2c28f4b50330d
and0x354ef633fb3ba2c427f18fc39fcf96a31d0fd577
, with no patterns on fail or success with either contract - I haven't tried using viem directly, but I'll do that either tonight or tomorrow
- No change in fail or success state from changing the RPC service, and fail or success states are always consistent
from wagmi.
This issue has been locked since it has been closed for more than 14 days.
If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new discussion thread.
from wagmi.
Related Issues (20)
- Mock connector not able to send transaction? HOT 2
- Injected connector: multiple addresses connection mismatches currently selected account HOT 1
- Depending on vulnerable package caused by mipd 0.0.5 HOT 5
- Depending on vulnerable package ws 8.13.0 HOT 4
- Error: connector.getChainId is not a function HOT 1
- Wagmi cli foundry plugin defaultExcludes list is replaced when specified HOT 2
- create wagmi templates don't work HOT 2
- Cant swap MATIC using 0x and polygon HOT 2
- WalletConnect modal does not appear when using a fallback to `unstable_connector(injected)` HOT 1
- Unable to create a type safe abstraction that runs simulation and exposes a write function
- Missing type in ConnectErrorType when using connect method from useConnect HOT 2
- useWriteContract cannot return hash normally when using wallet-connect connector HOT 4
- Using metaMask connector results in TypeError HOT 2
- Wrong connect status of useAccount with Rabby HOT 6
- EIP-1193 auto-injected connector connections don't persist on page refresh if previously disconnected with ssr enabled HOT 1
- Typedef of serialize/deserialize in createStorage is forcing serialization
- Viem has a [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas) action (PR welcome to add the Wagmi Action/Hook). You can use that or you can encode the contract data and pass it to `useEstimateGas`. HOT 3
- `WagmiProviderNotFoundError` for hooks generated by `@wagmi/cli` in monorepo HOT 1
- useBalance use too many request to get balance. Do you plan for supporting get balance for multiple tokens? HOT 1
- Cannot switch chains on mobile when using MetaMask 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 wagmi.