Failed to execute 'setItem' on 'Storage': Setting the value of 'wagmi.cache' exceeded the quota

487 Views Asked by At

I am building a Next.js app that uses wagmi and react-query.

I had to upgrade wagmi from "0.6.8" to version "0.12.10" to get the walletConnect v2 connector.

Ever since I upgraded, I am getting the attached error in the console. It arises when I have used the app for a few minutes and have gone back and forth between some pages that fetch some data.

Error Message error message

I tried clearing the wagmi.cache in local storage but that only solved the problem for a couple of days and after that, the problem reoccurred as the storage got filled again.

The queries array in the wagmi.cache gets filled with too many queries which leads to the limit being reached.

0

There are 0 best solutions below