From c29f19a88b919254bc41d4818bd22ae54d52b36e Mon Sep 17 00:00:00 2001 From: Rahul Date: Mon, 14 Aug 2023 16:41:08 +0530 Subject: [PATCH] perf: Limiting the suggested binding to fix performance issue (#6877) --- src/components/App.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/App.tsx b/src/components/App.tsx index 2a39bc6b..eccc0174 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -7379,6 +7379,9 @@ class App extends React.Component { private maybeSuggestBindingForAll( selectedElements: NonDeleted[], ): void { + if (selectedElements.length > 50) { + return; + } const suggestedBindings = getEligibleElementsForBinding(selectedElements); this.setState({ suggestedBindings }); }