MCPcopy Index your code
hub / github.com/microsoft/SandDance / load

Method load

docs/app/js/sanddance-app.js:51438–51448  ·  view source on GitHub ↗
(dataSource, partialInsight)

Source from the content-addressed store, hash-verified

51436 }
51437 }
51438 load(dataSource, partialInsight) {
51439 //clone so that we do not modify original object
51440 dataSource = (0, _sanddanceExplorer.SandDance).VegaDeckGl.util.clone(dataSource);
51441 this.setState({
51442 dataSource
51443 });
51444 document.title = `SandDance - ${dataSource.displayName}`;
51445 return this.explorer.load(dataSource, (columns)=>{
51446 return partialInsight || this.props.insights && this.props.insights[dataSource.id];
51447 }, this.props.initialOptions && (0, _sanddanceExplorer.SandDance).VegaDeckGl.util.deepMerge({}, this.props.initialOptions["*"], this.props.initialOptions[dataSource.id]));
51448 }
51449 dataSourceError(dataSource) {
51450 switch(dataSource.dataSourceType){
51451 case "local":

Callers 2

hydrateSnapshotMethod · 0.95
renderMethod · 0.95

Calls 2

cloneMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected