From b6f67c8ee36029e0534a9b5200bd65e020471a7d Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Wed, 28 Jul 2021 01:54:12 +0200 Subject: [PATCH] port: add missing update in set_view --- nested/src/core/port.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nested/src/core/port.rs b/nested/src/core/port.rs index 11fbf3e..34445c5 100644 --- a/nested/src/core/port.rs +++ b/nested/src/core/port.rs @@ -44,6 +44,7 @@ where V::Msg: Clone { } pub fn set_view(&self, view: Option>) { + self.update(); *self.view.write().unwrap() = view.clone(); self.cast.write().unwrap().reset(view); }