Skip to content

fix: disable storage on ENS fallback config#509

Open
tenderdeve wants to merge 1 commit into
family:mainfrom
tenderdeve:fix/479-ens-fallback-storage-pollution
Open

fix: disable storage on ENS fallback config#509
tenderdeve wants to merge 1 commit into
family:mainfrom
tenderdeve:fix/479-ens-fallback-storage-pollution

Conversation

@tenderdeve
Copy link
Copy Markdown

The internal ENS fallback config creates a separate Wagmi instance that writes to localStorage under the default "wagmi.store" key. When the host app uses a custom storage key, both keys coexist and the fallback config overrides the user's chain selection on page reload.

Setting storage: null on the fallback config prevents it from persisting any state, which is correct since it only exists for read-only ENS resolution on mainnet.

Fixes #479

The internal ENS fallback config used createConfig without disabling
storage, causing it to write to localStorage under the default
"wagmi.store" key. This conflicts with applications that use a custom
storage key, leading to chain state reverting to mainnet on page reload.

Setting storage: null prevents the fallback config from persisting any
state since it is only used for read-only ENS resolution.

Fixes family#479
@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 2026

@tenderdeve is attempting to deploy a commit to the Aave Team on Vercel.

A member of the Team first needs to authorize it.

@tenderdeve tenderdeve marked this pull request as ready for review May 5, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Internal useEnsFallbackConfig causes Wagmi storage pollution and inconsistent chain state

1 participant