Skip to content

Commit 06bf21b

Browse files
committed
graph: derived queries should respect causality region
1 parent 6066d25 commit 06bf21b

File tree

1 file changed

+1
-0
lines changed
  • graph/src/components/store

1 file changed

+1
-0
lines changed

graph/src/components/store/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ impl DerivedEntityQuery {
9090
/// Checks if a given key and entity match this query.
9191
pub fn matches(&self, key: &EntityKey, entity: &Entity) -> bool {
9292
key.entity_type == self.entity_type
93+
&& key.causality_region == self.causality_region
9394
&& entity
9495
.get(&self.entity_field)
9596
.map(|v| &self.value == v)

0 commit comments

Comments
 (0)