MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / getGridModelDedupeKey

Function getGridModelDedupeKey

renderer.js:1327–1333  ·  view source on GitHub ↗

Stable identity for grid rows: same file path = one row (handles duplicate DB ids).

(model)

Source from the content-addressed store, hash-verified

1325 return true;
1326 }
1327 if (activeThumbnailRenders.has(model.filePath)) {
1328 pendingThumbnails.add(model.filePath);
1329 return false;
1330 }
1331 // Stale pending bit (dropped while a race left the flag set)
1332 if (pendingThumbnails.has(model.filePath)) {
1333 pendingThumbnails.delete(model.filePath);
1334 }
1335
1336 pendingThumbnails.add(model.filePath);

Callers 2

Calls 1

Tested by

no test coverage detected