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


##########
superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/Multi.tsx:
##########
@@ -82,6 +91,17 @@ export type DeckMultiProps = {
 const DeckMulti = (props: DeckMultiProps) => {
   const containerRef = useRef<DeckGLContainerHandle>();
 
+  const dataMask = useSelector(
+    (state: { dataMask?: DataMaskState }) => state.dataMask || {},
+  );
+
+  const layerVisibilityFilter = Object.values(dataMask).find(
+    mask => mask?.extraFormData?.visible_deckgl_layers !== undefined,
+  );
+
+  const visibleDeckLayersFromRedux =

Review Comment:
   Can we optimize this with createSelector?



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