kgabryje commented on code in PR #20645: URL: https://github.com/apache/superset/pull/20645#discussion_r916770131
########## superset-frontend/src/explore/actions/hydrateExplore.ts: ########## @@ -120,17 +121,21 @@ export const hydrateExplore = lastRendered: 0, }; + const allDatasources = { + ...datasources, + [getDatasourceUid(initialDatasource)]: initialDatasource, + }; + + dispatch(initDatasources(allDatasources)); + return dispatch({ type: HYDRATE_EXPLORE, data: { charts: { ...charts, [chartKey]: chart, }, - datasources: { - ...datasources, - [getDatasourceUid(initialDatasource)]: initialDatasource, - }, + datasources: allDatasources, Review Comment: Or the opposite - do we need to `initDatasources` if we initialize them here -- 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: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org