yousoph commented on code in PR #40978:
URL: https://github.com/apache/superset/pull/40978#discussion_r3465567692
##########
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:
Good point — updated in 6b2f4cc. The selector now derives a `Record<id,
boolean>` keyed only on `defaultToFirstItem` so the component only rerenders
when that specific flag changes.
--
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]