mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
Merge remote-tracking branch 'origin/main' into feat/encounter-phase-2
This commit is contained in:
commit
bfdc2ae025
1 file changed
-14
@@ -238,20 +238,6 @@ export const medicationDependentKeys = [
|
||||
*/
|
||||
export const cycleDependentKeys = [queryKeys.cycle(), queryKeys.insightsRoot()];
|
||||
|
||||
/**
|
||||
* Keys invalidated when a visit or an address-book entry changes.
|
||||
*
|
||||
* Both roots ride together in one bundle rather than two, because the two
|
||||
* writes reach each other: renaming a practice changes the label every visit
|
||||
* that names it renders, and deleting one nulls the reference on visits that
|
||||
* stay. A bundle that evicted only the surface being written would leave the
|
||||
* other showing the pre-write name.
|
||||
*/
|
||||
export const encounterDependentKeys = [
|
||||
queryKeys.encounters(),
|
||||
queryKeys.practitioners(),
|
||||
];
|
||||
|
||||
/**
|
||||
* Invalidate every key in the bundle in parallel. Use this from mutation
|
||||
* `onSuccess` handlers so the call site stays a one-liner instead of repeating
|
||||
|
||||
Reference in new issue
Block a user