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
Wagmi uses the same key for caching across versions. This will lead to issues for users who are upgrading, particularly for those who are coming from v0.12.x and might have to revert or deal with non-even CDN propagation.
I suggest us document at least the impact the storage key can have for those who are about to upgrade.
This discussion was converted from issue #3514 on January 25, 2024 15:38.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Describe the bug
Wagmi uses the same key for caching across versions. This will lead to issues for users who are upgrading, particularly for those who are coming from v0.12.x and might have to revert or deal with non-even CDN propagation.
I suggest us document at least the impact the storage key can have for those who are about to upgrade.
Relevant file:
https://github.com/wevm/wagmi/blob/main/packages/core/src/createStorage.ts#L56
Consider a versioning scheme similar to WalletConnect
Link to Minimal Reproducible Example
No response
Steps To Reproduce
useBalance()
Wagmi Version
v0.12.x / v1
Viem Version
any
TypeScript Version
No response
Check existing issues
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions