Skip to content

Commit 8f6d2a3

Browse files
authored
Remove mutli source encoding cache (#4678)
1 parent 7163616 commit 8f6d2a3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

extension/src/plots/model/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ export class PlotsModel extends ModelWithPersistence {
415415
await Promise.all([
416416
collectData(output),
417417
collectTemplates(output),
418-
collectMultiSourceVariations(output, this.multiSourceVariations)
418+
collectMultiSourceVariations(output)
419419
])
420420

421421
this.comparisonData = {

extension/src/plots/multiSource/collect.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ const collectPathMultiSourceVariations = (
8585
}
8686
}
8787

88-
export const collectMultiSourceVariations = (
89-
output: PlotsOutput,
90-
acc: Record<string, Record<string, unknown>[]>
91-
) => {
88+
export const collectMultiSourceVariations = (output: PlotsOutput) => {
89+
const acc: Record<string, Record<string, unknown>[]> = {}
9290
const { data } = output
9391
for (const [path, plots] of Object.entries(data)) {
9492
collectPathMultiSourceVariations(acc, path, plots)
@@ -275,6 +273,8 @@ const collectUnmergedShapeEncoding = (
275273
}
276274
}
277275

276+
// this is how we can collect the encoding for multi-source plots
277+
// we need to pass in the anchors that we want to fill as well
278278
const collectPathMultiSourceEncoding = (
279279
acc: MultiSourceEncoding,
280280
path: string,

0 commit comments

Comments
 (0)