-
Notifications
You must be signed in to change notification settings - Fork 160
feat: refetch geodata when user changes wallet address #6780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/implement-consent-for-token-importing
Are you sure you want to change the base?
feat: refetch geodata when user changes wallet address #6780
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
apps/cowswap-frontend/src/modules/rwa/updaters/GeoDataUpdater.tsx
Outdated
Show resolved
Hide resolved
shoom3301
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary
Handle this issue
Refetch geo data when user changes wallet address.
Previously, geo data was only fetched once on app load and cached. This caused issues when users switched wallets, as the geo check was based on stale data. Now the geo API is called again whenever the wallet address changes.
To Test
[ ] - there is a new api request to fetch geodata, user consent settings should be changed