From 46b4b6409fa3b5d113ff0ccedaaa4d251bbcd9f4 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 10 Aug 2021 09:30:42 +0200 Subject: [PATCH] fix: suspendRequestLayout not being reset to the right state This causes unecessary `requestLayout` --- packages/core/ui/core/properties/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/ui/core/properties/index.ts b/packages/core/ui/core/properties/index.ts index 2c0eaf5a8..398e95ec7 100644 --- a/packages/core/ui/core/properties/index.ts +++ b/packages/core/ui/core/properties/index.ts @@ -1375,7 +1375,7 @@ export const initNativeView = profile('"properties".initNativeView', function in // if the view requestLayout was not suspended before // it means we can request a layout if needed. // will be done after otherwise - view.suspendRequestLayout = false; + view.suspendRequestLayout = wasSuspended; if (!wasSuspended && view.isLayoutRequestNeeded) { view.requestLayout(); }