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

fix: soil id data caching #1690

Merged
merged 7 commits into from
Jul 3, 2024
Merged

fix: soil id data caching #1690

merged 7 commits into from
Jul 3, 2024

Conversation

tm-ruxandra
Copy link
Contributor

@tm-ruxandra tm-ruxandra commented Jul 2, 2024

Description

App was locking up because multiple soil ID components were rendering at once, which wasn't a supported use-case in the initial loading implementation. This caused contention over the soil ID redux store, resulting in an infinite cycle of queries canceling each other out. Update the soil ID data hook to use the new cache-based implementation of the redux store slice.

Checklist

  • Corresponding issue has been opened

Related Issues

#1647

Verification steps

Open soil ID views through both the map and sites list. Verify that the app does not lock up anymore. Verify that site data is loaded once and continues to be available until the user navigates way from the site. Verify that data displayed on map callouts persists while the user views site data.

@tm-ruxandra tm-ruxandra requested review from shrouxm and knipec July 2, 2024 19:38
@tm-ruxandra tm-ruxandra merged commit 75b12ad into main Jul 3, 2024
12 checks passed
@tm-ruxandra tm-ruxandra deleted the fix/soil-id-cache branch July 3, 2024 17:43
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