diff --git a/frontend/src/app/main/ui/hooks/resize.cljs b/frontend/src/app/main/ui/hooks/resize.cljs index 1782048cae..2811805a06 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)]