diff --git a/crates/bindings/src/lib.rs b/crates/bindings/src/lib.rs index f1eec19e79a..9e02a3a97f0 100644 --- a/crates/bindings/src/lib.rs +++ b/crates/bindings/src/lib.rs @@ -950,6 +950,11 @@ impl ViewContext { pub fn sender(&self) -> Identity { self.sender } + + /// Obtain an [`AnonymousViewContext`] by dropping `sender`. + pub fn as_anonymous(&self) -> AnonymousViewContext { + AnonymousViewContext::default() + } } /// The context that any reducer is provided with.