EnxDev commented on code in PR #35984:
URL: https://github.com/apache/superset/pull/35984#discussion_r2511365964


##########
superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx:
##########
@@ -566,6 +570,7 @@ const DashboardBuilder = () => {
       const filterBarWidth = dashboardFiltersOpen
         ? adjustedWidth
         : CLOSED_FILTER_BAR_WIDTH;
+      setCurrentFilterBarWidth(filterBarWidth);

Review Comment:
   What do you think about updating the state only if the width actually 
changed to avoid unnecessary re-renders?
   ```suggestion
   if (filterBarWidth !== currentFilterBarWidth) {
     setCurrentFilterBarWidth(filterBarWidth);
   }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to