Skip to content
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

Reduce number of MapBox requests #157

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

Carifio24
Copy link
Member

I noticed that, currently, we make two MapBox requests every time we change our location. After looking into this, it turns out that the reason is that the AWV makes its own request to update its location name info. This PR attempts to cut down on the number of requests by only having the AWV make a request to update its location name when it's open (and then make a request when it's opened to get it back up-to-date). There may be a few more places that we can trim down on requests, but I think this should get rid of the lion's share of duplication.

@patudom patudom merged commit 6d71cb5 into cosmicds:main Apr 5, 2024
1 check passed
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.

2 participants