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
I checked there isn't already an issue for the bug I encountered.
Describe the bug
When using a custom storage that supports any datatype without serialization (i.e. IndexedDB, in-memory) for a wagmi config, the typedefinition of serialize and deserialize force you to convert your data to a string and back.
The text was updated successfully, but these errors were encountered:
cryptoflop
changed the title
Typedef of serialize/deserialize in createStorage forcing serialization
Typedef of serialize/deserialize in createStorage is forcing serialization
Aug 8, 2024
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.
Check existing issues
Describe the bug
When using a custom storage that supports any datatype without serialization (i.e. IndexedDB, in-memory) for a wagmi config, the typedefinition of
serialize
anddeserialize
force you to convert your data to a string and back.Link to Minimal Reproducible Example
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAbzgYygUwIYzQZRtDAczTgF84AzKCEOAcgHciRg6AoN1TbPA4gCgRs4cAM5oowDABtgALzT8AbjICuaAJSJhIuAHo9cMBlGjgAO0JwYAC2qrCN6zZIrp6uCbjBRAGjjmEPCQpsAARtIkACYe+NYAnmBoUWgUOiLoMKpQ5nBu6jqkvjop4pIy8or5mtq6+oaiGCAkPqIeLujpcJnZudWFxSKi+FBEaABccNIQyDK8o8TFpBpsQA
Steps To Reproduce
No response
What Wagmi package(s) are you using?
wagmi, @wagmi/core
Wagmi Package(s) Version(s)
2.12.4
Viem Version
2.19.1
TypeScript Version
5.3
Anything else?
No response
The text was updated successfully, but these errors were encountered: