MCPcopy Create free account
hub / github.com/microsoft/SandDance / isSameDataSource

Method isSameDataSource

docs/app/js/sanddance-app.js:51394–51400  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

51392 else window.removeEventListener(key, this.handlers[key]);
51393 }
51394 isSameDataSource(a, b) {
51395 if (a.dataSourceType === b.dataSourceType && a.type === b.type && a.id === b.id) {
51396 if (a.dataSourceType === "url") return a.dataUrl === b.dataUrl;
51397 return true;
51398 }
51399 return false;
51400 }
51401 hydrateSnapshot(snapshot, selectedSnapshotIndex = -1) {
51402 if (snapshot.dataSource) {
51403 if (this.isSameDataSource(snapshot.dataSource, this.state.dataSource)) {

Callers 1

hydrateSnapshotMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected