You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/06/07 10:03:57 UTC

[GitHub] [superset] simcha90 commented on a change in pull request #15012: fix(native-filters): avoid double load on select initialization

simcha90 commented on a change in pull request #15012:
URL: https://github.com/apache/superset/pull/15012#discussion_r646447286



##########
File path: superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx
##########
@@ -109,6 +109,7 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) {
   } = formData;
   const groupby = ensureIsArray<string>(formData.groupby);
   const [col] = groupby;
+  const [initialColtypeMap] = useState(coltypeMap);

Review comment:
       I'm not sure if this proposal will be rellevant, but may be it can make sense instead of split state to different places we can control calls of `setDataMask` hook, for example - not call it if doesn't have filled own state or stuff like that, because if we will have some more logic for own state we can get same issue, or may be I wrong




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org