Problem
The session restore useEffect only depends on walletConnect?.projectId:
}, [walletConnect?.projectId]);
If the consumer changes chains or metadata without changing projectId, the WalletConnect provider won't be re-initialized with the updated config.
Fix
Add walletConnect?.chains and walletConnect?.metadata to the dependency array, or serialize the full config object for comparison.
Context
Identified during code review of PR #2. Low priority since these props rarely change at runtime.
Problem
The session restore
useEffectonly depends onwalletConnect?.projectId:If the consumer changes
chainsormetadatawithout changingprojectId, the WalletConnect provider won't be re-initialized with the updated config.Fix
Add
walletConnect?.chainsandwalletConnect?.metadatato the dependency array, or serialize the full config object for comparison.Context
Identified during code review of PR #2. Low priority since these props rarely change at runtime.