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

Add support for caching specific useQuery routes (such as ICD11's retrieve by ID API) #7063

Closed
1 task
rithviknishad opened this issue Jan 19, 2024 · 2 comments
Assignees
Labels
waiting for related PR a co-related detail PR is under construction work-in-progress

Comments

@rithviknishad
Copy link
Member

rithviknishad commented Jan 19, 2024

Describe the bug
When we apply ICD11 filters, multiple API calls are dispatched from various parts of the app to retrieve that ICD11 object by ID.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Patients Filter
  2. Filter by ICD-11 Diagnoses
  3. Apply the filters
  4. See network requests

Task

  • Add support for voluntarily opting in certain routes to be cached by useQuery.
image
@rithviknishad rithviknishad added the waiting for related PR a co-related detail PR is under construction label Jan 19, 2024
@rithviknishad rithviknishad self-assigned this Jan 19, 2024
@rithviknishad
Copy link
Member Author

Waiting for #7062

@rithviknishad
Copy link
Member Author

Note #7062 already partially reuses the existing objects on new selections. But it still would end up being fetched twice since it's needed by other components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for related PR a co-related detail PR is under construction work-in-progress
Projects
Status: Done
1 participant