kgabryje commented on code in PR #40978:
URL: https://github.com/apache/superset/pull/40978#discussion_r3451139192


##########
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/FilterValue.tsx:
##########
@@ -156,6 +156,11 @@ const FilterValue: FC<FilterValueProps> = ({
   const transitiveParentIds = useTransitiveParentIds(id);
   const shouldRefresh = useShouldFilterRefresh();
 
+  const allFiltersConfig = useSelector(
+    (state: RootState) => state.nativeFilters?.filters,

Review Comment:
   we only really use `defaultToFirstItem` fields so perhaps we could only 
extract those to avoid redundant rerenders when any other filter fields change?



-- 
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