From 2ba79961167550da6c427ba1e2af28090541c1a4 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 4 Aug 2023 08:58:44 +0200 Subject: [PATCH] :bug: Fix unexpected viewport update on leave workspace --- frontend/src/app/main/ui/hooks/resize.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/hooks/resize.cljs b/frontend/src/app/main/ui/hooks/resize.cljs index 1782048ca..2811805a0 100644 --- a/frontend/src/app/main/ui/hooks/resize.cljs +++ b/frontend/src/app/main/ui/hooks/resize.cljs @@ -106,7 +106,7 @@ (mf/set-ref-val! prev-val-ref node))))] - (mf/with-effect [] + (mf/with-layout-effect [] ;; On dismount we need to disconnect the current observer (fn [] (when-let [observer (mf/ref-val observer-ref)]