Passing `config` through parameters doesn't work
youPickItUp opened this issue · comments
Describe the bug
I tried passing config
through parameters to hooks (outside of WagmiContext
), but it throws WagmiProviderNotFoundError
. Parameters aren't pass down to hooks called inside hooks, which causes the error and, to me, conceptually doesn't make sense.
Not sure if this is intended use case 🤷
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
Wagmi Version
2.5.18
Viem Version
2.9.9
TypeScript Version
No response
Check existing issues
- I checked there isn't already an issue for the bug I encountered.
Anything else?
No response
Nice find! Looks like there were multiple places where config
wasn't passed through directly. #3793 addresses this.
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.