You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a server action sets a cookie with cookies().set("myCookie", "value") and wagmi is setup using a cookie store, then after the action has been performed, a warning is thrown and wagmi is stuck in reconnecting status:
See warning in browser console + wagmi account status stays "reconnecting"
Wagmi Version
2.5.7
Viem Version
2.7.3
TypeScript Version
5.3.3
Check existing issues
I checked there isn't already an issue for the bug I encountered.
Anything else?
There are a couple of similar issues, and they might all be related, but this issue specifically uses the wagmi cookie store and setting cookies.
The cookie setup is slightly different than in the docs because I use rainbowkit (explanation here) and I don't believe that is an issue.
The text was updated successfully, but these errors were encountered:
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.
Describe the bug
When a server action sets a cookie with
cookies().set("myCookie", "value")
and wagmi is setup using a cookie store, then after the action has been performed, a warning is thrown and wagmi is stuck inreconnecting
status:The only way to get wagmi to reconnect is to refresh the page.
I have created a repo with minimum setup to reproduce.
Link to Minimal Reproducible Example
https://github.com/smauret/wagmi-next-bug-repro
Steps To Reproduce
Wagmi Version
2.5.7
Viem Version
2.7.3
TypeScript Version
5.3.3
Check existing issues
Anything else?
There are a couple of similar issues, and they might all be related, but this issue specifically uses the wagmi cookie store and setting cookies.
The cookie setup is slightly different than in the docs because I use rainbowkit (explanation here) and I don't believe that is an issue.
The text was updated successfully, but these errors were encountered: