Comments (6)
Despite docs mentioning tanStack react-query on getting started / wagmi provider docs, I've seen a lot of people still not understanding that all hooks are wrapped with react-query and response fields mimic that of react query as well as that query
options. So IMO it's a good idea to remind people about it somewhere and link to react-query docs perhaps
from wagmi.
Yeah down for linking to it somewhere. Also, not all hooks use TanStack Query, e.g. useAccount
, useConfig
, useClient
, but point taken!
from wagmi.
We mention TanStack Query in a bunch of places already and it's the first guide in the guides section so closing this for now. Feel free to open a PR with something more actionable. Incomplete list of places it's mentioned:
- Why Wagmi
- Installation
- Getting Started > Installation
- Getting Started > Setup
- TanStack Query guide
- FAQ > How does Wagmi work?
query
property on individual hooks- TanStack Query exports for individual hooks
from wagmi.
Seems like the thing that trips folks up (or at least what we see a lot) is setting args
dynamically, e.g. with useState
. Think it makes the most sense to add a section with this to the TanStack Query section of the docs.
from wagmi.
Definitely open to having anything mentioned or emphasized, to get devs just use the idea that they can control hooks/requests better.
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 other comments you can create a new discussion.
from wagmi.
Related Issues (20)
- WalletClient type mismatching HOT 2
- 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
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.